Esempio n. 1
0
        private void barCheckIdentify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ControlsMapIdentifyToolClass tool = new ControlsMapIdentifyToolClass();

            tool.OnCreate(this.MapControl.Object);
            MapControl.CurrentTool = tool;
        }
Esempio n. 2
0
 private void buttonItem3_Click(object sender, EventArgs e)
 {
     //点击identify工具:
     m_sketchshape        = "identify";
     m_NewPolygonFeedback = null;
     ESRI.ArcGIS.SystemUI.ICommand panCommand = new ControlsMapIdentifyToolClass();
     panCommand.OnCreate(m_MapCtrls.Object);
     m_MapCtrls.CurrentTool = panCommand as ITool;
 }
Esempio n. 3
0
        private void barButtonItem11_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ICommand pCommand = new ControlsMapIdentifyToolClass();
            ITool    pTool    = pCommand as ITool;

            switch (this.xtraTabControl1.SelectedTabPageIndex)
            {
            case 0:
                pCommand.OnCreate(this.mainMapControl.Object);
                this.mainMapControl.CurrentTool = pTool;
                break;

            case 1:
                pCommand.OnCreate(this.axPageLayoutControl.Object);
                this.axPageLayoutControl.CurrentTool = pTool;
                break;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 查询要素信息
        /// </summary>
        public static void IdentifyTool(AxMapControl axMapControl)
        {
            if (axMapControl == null)
            {
                return;
            }
            ICommand pCommand;

            pCommand = new ControlsMapIdentifyToolClass();
            pCommand.OnCreate(axMapControl.Object);
            axMapControl.CurrentTool = (ITool)pCommand;
        }
Esempio n. 5
0
 void IGMap.Identify()
 {
     ICommand command = new ControlsMapIdentifyToolClass();
     command.OnCreate(this._hook);
     (this._mapHook).CurrentTool = (ITool)command;
 }
 /// <summary>
 /// 查询要素信息
 /// </summary>
 public static void IdentifyTool(AxMapControl axMapControl)
 {
     if (axMapControl == null)
     {
         return;
     }
     ICommand pCommand;
     pCommand = new ControlsMapIdentifyToolClass();
     pCommand.OnCreate(axMapControl.Object);
     axMapControl.CurrentTool = (ITool)pCommand;
 }
Esempio n. 7
0
 private void bubbleBtnIdentify_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
 {
     ICommand pCommand = new ControlsMapIdentifyToolClass();
     ITool pTool = pCommand as ITool;
     switch (this.tabControl.SelectedTabIndex)
     {
         case 0:
             pCommand.OnCreate(this.mainMapControl.Object);
             this.mainMapControl.CurrentTool = pTool;
             break;
         case 1:
             pCommand.OnCreate(this.axPageLayoutControl.Object);
             this.axPageLayoutControl.CurrentTool = pTool;
             break;
     }
 }
Esempio n. 8
0
        private void btnIdentify_Click(object sender, EventArgs e)
        {
            UncheckAllButtons(sender);

            var cmd = new ControlsMapIdentifyToolClass();
            cmd.OnCreate(axMapControl1.Object);
            axMapControl1.CurrentTool = (ITool)cmd;
        }