Пример #1
0
        private void ToolSelected(ToolsGroup grp, ToolBase tool)
        {
            if (tool.IsSelected)
            {
                if (_currentActiveGroup != null)
                {
                    _currentActiveGroup.ResetSelections();
                }

                ActiveTool          = tool;
                _currentActiveGroup = grp;
            }
        }
Пример #2
0
 /// <summary>
 /// InvokeTool selected in group
 /// </summary>
 /// <param name="tool"></param>
 private void ToolBaseOnToolSelected(ToolBase tool)
 {
     GroupActive  = tool.IsSelected;
     SelectedTool = tool;
     _toolSelected?.Invoke(this, tool);
 }