AO+C#添加数据 //添加数据 private void toolStripButton1_Click(object sender, EventArgs e) { IScene scene = axSceneControl1.Scene; IGxDialog dlg = new GxDialogClass(); IGxObjectFilterCollection filtercollection = dlg as IGxObjectFilterCollection; filtercollection.AddFilter(new GxFilterDatasetsAndLayers(), true); IEnumGxObject enumobj; dlg.AllowMultiSelect = true; dlg.Title = "添加数据"; dlg.DoModalOpen(0, out enumobj); if (enumobj != null) { enumobj.Reset(); IGxObject gxobj = enumobj.Next(); while (gxobj != null) { if (gxobj is IGxDataset) { IGxDataset gxdataset = gxobj as IGxDataset; IDataset pdataset =