public ToolBarView(ToolBarViewModel vm) { this.Build (); viewModel = vm; connectedTool.Changed += ToolSelected; unconnectedTool.Changed += ToolSelected; forceTool.Changed += ToolSelected; momentTool.Changed += ToolSelected; selectionTool.Changed += ToolSelected; jointTool.Changed += ToolSelected; }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build (); //add the special drawing window here drawingViewModel = new DrawingWidgetViewModel(); drawingView = new DrawingWidgetView(drawingViewModel); toolBarViewModel = new ToolBarViewModel(); toolBarView = new ToolBarView(toolBarViewModel); toolbarAlignment.Add (toolBarView); DrawingBoxAlignment.Add(drawingView); VMMessenger.getMessenger().register<UpdateStatusMessage>(HandleStatusUpdateMessage); VMMessenger.getMessenger().register<UpdatePositionStatusMessage>(HandlePositionStatusUpdateMessage); ShowAll(); }
public NewToolChosenMessage(ToolBarViewModel.Tools t) { tool = t; }