public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
sceneControl1.Scene.Workspace = workspace1;
}
private void button1_Click(object sender, EventArgs e)
{
WorkspaceConnectionInfo info = new WorkspaceConnectionInfo();
info.Server = @"H:\cys\cys2\Productions\OSGB\supermap\cys";
info.Type = WorkspaceType.SMWU;
workspace1.Open(info);
sceneControl1.Scene.Open("cys");
sceneControl1.Scene.Refresh();
}
之前看到一个问题的打开场景代码是这样,在我的程序里面报错是怎么回事