Ejemplo n.º 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);
     }
 }
 //新建地图文档
 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);
     } 
 }