Exemple #1
0
 public EsriCommandProxy(ESRI.ArcGIS.SystemUI.ICommand cmdProxed)
 {
     this.m_EsriCommand = cmdProxed;
     if (!(this.m_EsriCommand is ESRI.ArcGIS.SystemUI.ICommand))
     {
         throw new Exception("ESRI命令代理类调用错误:传入的参数不是正确的ESRI命令。");
     }
 }
Exemple #2
0
 public EsriCommandProxy(ESRI.ArcGIS.SystemUI.ICommand cmdProxed)
 {
     this.m_EsriCommand = cmdProxed;
     if (!(this.m_EsriCommand is ESRI.ArcGIS.SystemUI.ICommand))
     {
         throw new Exception("ESRI命令代理类调用错误:传入的参数不是正确的ESRI命令。");
     }
 }
Exemple #3
0
 public void OnCreate(NBGIS.PluginEngine.IApplication hook)
 {
     if (hook != null)
     {
         this.m_Application = hook;
         m_CMD = new ESRI.ArcGIS.Controls.ControlsAddDataCommandClass();
         m_CMD.OnCreate(this.m_Application.MapControl);
     }
 }
Exemple #4
0
 public void OnCreate(NBGIS.PluginEngine.IApplication hook)
 {
     if (hook != null)
     {
         this.m_Application = hook;
         tool = new ESRI.ArcGIS.Controls.ControlsMapZoomInToolClass();
         cmd  = tool as ESRI.ArcGIS.SystemUI.ICommand;
         cmd.OnCreate(this.m_Application.MapControl);
     }
 }
Exemple #5
0
        public void OnCreate(MyPluginEngine.IApplication hook)
        {
            if (hook != null)
            {
                this.hk = hook;
                cmd     = new ControlsOpenDocCommandClass();

                cmd.OnCreate(this.hk.PageLayoutControl);
            }
        }
Exemple #6
0
 public CommandSelExport()
 {
     base._Name    = "GeoDataCenterFunLib.CommandSelExport";
     base._Caption = "选择要素范围提取";
     base._Tooltip = "选择要素范围提取";
     base._Checked = false;
     base._Visible = true;
     base._Enabled = false;
     base._Message = "选择要素范围提取";
     m_pCommand    = new GeoDataExport.Commands.CommandSelExport();
 }