示例#1
0
 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);
 }
示例#2
0
 private void InitTools()
 {
     _toolDefault = new ToolDefault(this);
     _activeTool = _toolDefault;
     _nextTool = _activeTool;
     _activeTool.Enable();
 }