コード例 #1
0
 //新建地图文档
 public static void NewMapDocument(ESRI.ArcGIS.Controls.AxMapControl axMapControl)
 {
     if (axMapControl == null)
     {
         return;
     }
     try
     {
         ICommand command = new CreateNewMapDocument();
         command.OnCreate(axMapControl.Object);
         command.OnClick();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }
コード例 #2
0
 //新建地图文档
 public static void NewMapDocument(ESRI.ArcGIS.Controls.AxMapControl axMapControl)
 {
     if (axMapControl == null)
     {
         return;
     }
     try
     {
         ICommand command = new CreateNewMapDocument();
         command.OnCreate(axMapControl.Object);
         command.OnClick();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     } 
 }