Exemple #1
0
        public override void OnClick()
        {
            _inIdentify = false;
            _plugin.FireStartMapIdentify(null);
            _context.SetCurrentTool(this);

            if (_dockService == null)
            {
                _dockService = _context.Container.GetInstance <DockPanelService>();
            }
            if (_dockService.Visible == false)
            {
                _dockService.Show();
                return;
            }
        }
Exemple #2
0
        public override void OnClick()
        {
            ISecureContext sContext = _context as ISecureContext;

            if (_dockService == null)
            {
                _dockService = _context.Container.GetInstance <DockPanelService>();
            }

            if (sContext.YutaiProject == null)
            {
                MessageService.Current.Warn("当前项目没有设置定位器");

                _dockService.Hide();
            }
            else
            {
                _dockService.Show();
            }
        }