Exemplo n.º 1
0
        // States Interface

        public void SwitchToState(ApplicationContext app_context_p)
        {
            // Store the app context for later use.
            ApplicationContext_m = app_context_p;

            // Test ToolbarViewModel
            ToolbarViewModel toolbar_view_model = new ToolbarViewModel();

            toolbar_view_model.Title            = "Transaction Register";
            toolbar_view_model.Background_Color = Brushes.Blue;
            toolbar_view_model.Font_Color       = Brushes.White;
            toolbar_view_model.Naigation_btn    = GUIUtilites.BuildImageButton("../images/HamburgerMenuWhite.png", NavigationBtn_Click, 56, 56, 24, 24, Brushes.Transparent, Brushes.Transparent, HorizontalAlignment.Center, VerticalAlignment.Center);

            ToolbarController_m.UpdateViews(toolbar_view_model);

            // Test WorkspaceViewModel
            WorkspaceViewModel workspacce_view_modle = new WorkspaceViewModel();

            TransactionsView temp_trans_view = new TransactionsView();

            temp_trans_view.TransactionsLB.Items.Add("Test Deposit");

            // Add Workspace Gid to Workspace
            workspacce_view_modle.Controls_m.Add(temp_trans_view);

            // Create actual image button.
            //Button image_button = GUIUtilites.BuildImageButton("../images/EditWhite.png", AddTransactionBtn_Click, 56, 56, 24, 24, Brushes.SeaGreen, Brushes.Transparent, HorizontalAlignment.Right, VerticalAlignment.Bottom);
            //workspacce_view_modle.Controls_m.Add(image_button);

            WorkspaceController_m.UpdateViews(workspacce_view_modle);
        }
Exemplo n.º 2
0
        public void DefaultToolbarTest()
        {
            // 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    = GUIUtilites.BuildImageButton("../images/HamburgerMenuWhite.png", NavigationBtn_Click, 56, 56, 24, 24, Brushes.Transparent, Brushes.Transparent, HorizontalAlignment.Center, VerticalAlignment.Center);

            toolbar_controller_m.UpdateViews(toolbar_view_model);
        }
Exemplo n.º 3
0
        // State Interface

        public void SwitchToState(ApplicationContext app_context_p)
        {
            // Store the app context for later use.
            ApplicationContext_m = app_context_p;

            // Test ToolbarViewModel
            ToolbarViewModel toolbar_view_model = new ToolbarViewModel();

            toolbar_view_model.Title            = "Add Transaction";
            toolbar_view_model.Background_Color = Brushes.Blue;
            toolbar_view_model.Font_Color       = Brushes.White;
            toolbar_view_model.Naigation_btn    = GUIUtilites.BuildImageButton("../images/HamburgerMenuWhite.png", NavigationBtn_Click, 56, 56, 24, 24, Brushes.Transparent, Brushes.Transparent, HorizontalAlignment.Center, VerticalAlignment.Center);

            ToolbarController_m.UpdateViews(toolbar_view_model);

            // Test WorkspaceViewModel
            WorkspaceViewModel workspacce_view_modle = new WorkspaceViewModel();

            WorkspaceController_m.UpdateViews(workspacce_view_modle);
        }