public ToolbarTests() { TestToolbarView test_toolbar_view = new TestToolbarView(); // Setup Toolbar Controller toolbar_controller_m = new ToolbarController(); toolbar_controller_m.AddView(test_toolbar_view); }
public MainWindow() { InitializeComponent(); // Setup Toolbar Controller toolbar_controller_m = new ToolbarController(); toolbar_controller_m.AddView(MainToolbar); ApplicationContext app_context = new ApplicationContext(new StartingState(toolbar_controller_m)); // Add Item Modifer Buttons //tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/DeleteWhite.png", DeleteBtn_Click)); //tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/EditWhite.png", EditBtn_Click)); }
public MainWindow() { InitializeComponent(); // Setup Toolbar Controller toolbar_controller_m = new ToolbarController(); toolbar_controller_m.AddView(MainToolbar); // Test ToolbarViewModel ToolbarViewModel toolbar_view_model = new ToolbarViewModel(); toolbar_view_model.Title = "Testing Title"; toolbar_view_model.Background_Color = Brushes.Blue; toolbar_view_model.Font_Color = Brushes.White; toolbar_view_model.Naigation_btn = toolbar_view_model.BuildImageButton("../images/HamburgerMenuWhite.png", NavigationBtn_Click); toolbar_controller_m.UpdateViews(toolbar_view_model); // Add Item Modifer Buttons //tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/DeleteWhite.png", DeleteBtn_Click)); //tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/EditWhite.png", EditBtn_Click)); }