Esempio n. 1
0
 private void SetCurrentTool(TransformationTool tool)
 {
     if (tool != null) _lastTool = tool;
     _currentTool = tool;
     _widgets = (_currentTool == null) ? new List<Widget>() : _currentTool.GetWidgets(Document).ToList();
     foreach (var widget in _widgets)
     {
         widget.OnTransforming = OnWidgetTransforming;
         widget.OnTransformed = OnWidgetTransformed;
         widget.SelectionChanged();
     }
 }