예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            // Setup Toolbar Controller
            toolbar_controller_m = new ToolbarController();
            toolbar_controller_m.AddView(MainToolbar);

            // Setup Workspace Controller
            workspace_controller_m = new WorkspaceController();
            workspace_controller_m.AddView(MainWorkspace);


            ApplicationContext app_context = new ApplicationContext(new StartingState(toolbar_controller_m, workspace_controller_m));

            app_context.CurrentState_m.SwitchToState(app_context);

            // 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));
        }