コード例 #1
0
ファイル: Calculator.cs プロジェクト: OlekNg/AHMED
        public Calculator(FrameworkElement workspace, FrameworkElement window)
        {
            _geneticsConfiguration = new Configuration();
            _debugInfo = new DebugInfo();
            _dragTool = new DragTool(workspace, window);
            InitFileWatcher();
            CreateCommands();
            CreateDirections();

            SegmentEventHandler.Register(this);
        }
コード例 #2
0
ファイル: Editor.cs プロジェクト: OlekNg/AHMED
 public void Toolbox_Selected(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     CurrentBuilding.ViewMode = CurrentTool.Name;
     if (_lastTool != null) _lastTool.CancelAction();
     _lastTool = CurrentTool;
 }