Пример #1
0
        public override void OnClick()
        {
            if (_context.MainView.ControlType != GISControlType.PageLayout)
            {
                _context.MainView.ActivatePageLayout();
            }

            if (_autoLayoutViewService == null)
            {
                _autoLayoutViewService = _context.Container.GetInstance <AutoLayoutViewService>();
            }
            _autoLayoutViewService.Hide();

            if (_dockService == null)
            {
                _dockService = _context.Container.GetInstance <MapTemplateViewService>();
            }
            if (_dockService.Visible == false)
            {
                _dockService.Show();
                _dockService.InitEvents();
            }

            _plugin.IsDeign = true;
        }
Пример #2
0
 public override void OnClick()
 {
     if (_dockService == null)
     {
         _dockService = _context.Container.GetInstance <AutoLayoutViewService>();
     }
     if (_dockService.Visible == false)
     {
         _dockService.Show();
         return;
     }
 }