Пример #1
0
 //扫描识别重命名功能 功能
 private void btnScanJpg_Click(object sender, EventArgs e)
 {
     try
     {
         frmScan2DRenameJpgFileUI ui = new frmScan2DRenameJpgFileUI();
         ui.Show(this);
     }
     catch (Exception ee)
     {
         MessageBox.Show(this, ee.StackTrace, "提示");
     }
 }
Пример #2
0
 protected override void OnClick()
 {
     //
     //  TODO: Sample code showing how to access button host
     //
     ArcMap.Application.CurrentTool = null;
     //
     try
     {
         if (ui == null || ui.IsDisposed == true)
         {
             ui = new frmScan2DRenameJpgFileUI();
         }
         Control m = Form.FromHandle(new IntPtr(ArcMap.Application.hWnd));
         ui.Show(m);
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.StackTrace, "提示");
     }
 }