public override void OnClick() { UI.FrmImport3DFile frmImport = new UI.FrmImport3DFile(); frmImport.OutputGpString = m_HookHelper.CurrentCatalogItem.GetGpString(); if (frmImport.ShowDialog() == DialogResult.OK) { m_HookHelper.CurrentCatalogItem.Open(true); } }
public override void OnClick() { UI.FrmImport3DFile frmImport = new UI.FrmImport3DFile(); frmImport.ExcuteInForm = false; frmImport.FeatureClassName = m_HookHelper.CurrentCatalogItem.DatasetName.Name; if (frmImport.ShowDialog() == DialogResult.OK) { string str3DFile = frmImport.ThreeDimenFile; string strSpatialRef = frmImport.SpatialReferenceString; IFeature feature3D = null; if (Utility.GpTool.Append3DFile(str3DFile, m_HookHelper.CurrentCatalogItem.Dataset as IFeatureClass, strSpatialRef, ref feature3D)) { XtraMessageBox.Show("追加三维数据成功!"); //m_HookHelper.CurrentCatalogItem.Open(true); } else { XtraMessageBox.Show(string.Format("抱歉,追加操作失败!\n信息:{0}", Utility.GpTool.ErrorMessage)); } } }
public override void OnClick() { UI.FrmImport3DFile frmImport = new UI.FrmImport3DFile(); frmImport.ExcuteInForm=false; frmImport.FeatureClassName = m_HookHelper.CurrentCatalogItem.DatasetName.Name; if (frmImport.ShowDialog() == DialogResult.OK) { string str3DFile = frmImport.ThreeDimenFile; string strSpatialRef = frmImport.SpatialReferenceString; IFeature feature3D = null; if(Utility.GpTool.Append3DFile(str3DFile,m_HookHelper.CurrentCatalogItem.Dataset as IFeatureClass,strSpatialRef,ref feature3D)) { XtraMessageBox.Show("追加三维数据成功!"); //m_HookHelper.CurrentCatalogItem.Open(true); } else { XtraMessageBox.Show(string.Format("抱歉,追加操作失败!\n信息:{0}",Utility.GpTool.ErrorMessage)); } } }