public void DBToolLibrary(string toolName) { switch (toolName) { case "SHPToSDE": SpatialDataBase.frmSHPToSDE frmSHP = new frmSHPToSDE(m_gcon, this.m_frmMian.OraCmd); frmSHP.ShowDialog(); m_frmMian.ShowSDETree(); break; case "RasterToSDE": SpatialDataBase.frmRasterToSDE frmRaster = new frmRasterToSDE(m_gcon, this.m_frmMian.OraCmd); frmRaster.ShowDialog(); m_frmMian.ShowSDETree(); break; case "Search": SpatialDataBase.frmSearchDB frmSearch = new frmSearchDB(m_gcon, this.m_mapControl, this.m_frmMian.OraCmd); frmSearch.ShowDialog(); break; //case "SheetMetaData": // SpatialDataBase.frmSheetMetaData frmMetaData = new frmSheetMetaData(m_workSpace, this.m_frmMian.OraCmd); // frmMetaData.Show(); // break; case "ImageManage": SpatialDataBase.frmImage frmIm = new frmImage(this.m_frmMian.OraCmd); frmIm.ShowDialog(); break; } }
private void btnPic_Click(object sender, EventArgs e) { frmImage frm = new frmImage(); frm.ShowDialog(); //to close the form this.DialogResult = DialogResult.OK; }