private void _setTool(Tool tool) { Debug.Assert(tool != null, "Tool cannot be null."); if (_activeTool == _nextTool) { return; } _activeTool.Disable(); _activeTool = tool; _activeTool.Enable(); ToolChanged(this, tool); }
private void InitTools() { _toolDefault = new ToolDefault(this); _activeTool = _toolDefault; _nextTool = _activeTool; _activeTool.Enable(); }