public Calculator(FrameworkElement workspace, FrameworkElement window) { _geneticsConfiguration = new Configuration(); _debugInfo = new DebugInfo(); _dragTool = new DragTool(workspace, window); InitFileWatcher(); CreateCommands(); CreateDirections(); SegmentEventHandler.Register(this); }
public void Toolbox_Selected(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { CurrentBuilding.ViewMode = CurrentTool.Name; if (_lastTool != null) _lastTool.CancelAction(); _lastTool = CurrentTool; }