コード例 #1
0
        public override void OnClick()
        {
            if (_tool == null || _cmd == null || _AppHk == null)
            {
                return;
            }
            if (_AppHk.MapControl == null)
            {
                return;
            }
            Plugin.Application.AppGIS phook = _AppHk as Plugin.Application.AppGIS;
            SysCommon.BottomQueryBar  pBar  = phook.QueryBar;
            if (pBar.m_WorkSpace == null)
            {
                pBar.m_WorkSpace = Plugin.ModuleCommon.TmpWorkSpace;
            }
            if (pBar.ListDataNodeKeys == null)
            {
                pBar.ListDataNodeKeys = Plugin.ModuleCommon.ListUserdataPriID;
            }
            ControlsMapIdentify pTool = _cmd as ControlsMapIdentify;

            pTool.GetQueryBar(pBar);
            _AppHk.MapControl.CurrentTool = _tool;
            _AppHk.CurrentTool            = this.Name;
        }
コード例 #2
0
        public override void OnClick()
        {
            if (_tool == null || _cmd == null || _AppHk == null)
            {
                return;
            }
            if (_AppHk.MapControl == null)
            {
                return;
            }
            Plugin.Application.AppGIS phook = _AppHk as Plugin.Application.AppGIS;
            //SysCommon.BottomQueryBar pBar = phook.QueryBar;
            // if (pBar.m_WorkSpace == null)
            // {
            //     pBar.m_WorkSpace = Plugin.ModuleCommon.TmpWorkSpace;
            //  }
            ControlsMapIdentify pTool = _cmd as ControlsMapIdentify;

            // pTool.GetQueryBar(pBar);
            _AppHk.MapControl.CurrentTool = _tool;
            _AppHk.CurrentTool            = this.Name;
        }