Exemple #1
0
        private void VMToolSelected(object sender, VMSubTool tool)
        {
            if (_currentTool == tool)
            {
                return;
            }
            _controlPanel.SetSelectedTool(tool);
            if (_currentTool != null)
            {
                _currentTool.ToolDeselected(false);
            }
            _currentTool = tool;
            if (_currentTool != null)
            {
                _currentTool.ToolSelected(false);
            }

            Mediator.Publish(EditorMediator.ContextualHelpChanged);
        }