public override void OnClick() { FrmRasterImport frmFeatureClass = new FrmRasterImport(); if (frmFeatureClass.ShowDialog() == DialogResult.OK) { bool isSucceed = GpTool.CopyRaster(WorkspaceHelper.GetGpString(frmFeatureClass.Workspace, frmFeatureClass.RasterCatalogName, frmFeatureClass.RasterDatasetName), m_HookHelper.CurrentCatalogItem.GetGpString(), false, null); if (isSucceed) { XtraMessageBox.Show("导入成功!"); m_HookHelper.CurrentCatalogItem.Open(true); } else { XtraMessageBox.Show(string.Format("抱歉,导入失败,操作出现意外错误!\n信息:{0}", GpTool.ErrorMessage)); } } }
public override void OnClick() { FrmRasterImport frmFeatureClass = new FrmRasterImport(); if (frmFeatureClass.ShowDialog() == DialogResult.OK) { bool isSucceed = GpTool.CopyRaster(WorkspaceHelper.GetGpString(frmFeatureClass.Workspace, frmFeatureClass.RasterCatalogName, frmFeatureClass.RasterDatasetName), m_HookHelper.CurrentCatalogItem.GetGpString(),false,null); if (isSucceed) { XtraMessageBox.Show("导入成功!"); m_HookHelper.CurrentCatalogItem.Open(true); } else { XtraMessageBox.Show(string.Format("抱歉,导入失败,操作出现意外错误!\n信息:{0}", GpTool.ErrorMessage)); } } }