コード例 #1
0
ファイル: FifoApp.cs プロジェクト: Jadja/Fridge
        private void MenuButtonScan_Click(object sender, EventArgs e)
        {
            //Switches to the scan screen
            ScanView scanView = new ScanView(WorkingArea);

            SwitchView(scanView);
            ActiveControl            = scanView.Controls[3];
            MenuButtonScan.BackColor = Color.DarkSlateBlue;
            MenuPanel.Size           = new Size(WorkingArea.Width / 2, 100);
            MenuButtonDelete.Hide();
        }
コード例 #2
0
ファイル: FifoApp.cs プロジェクト: Jadja/Fridge
        private void MenuButtonProducts_Click(object sender, EventArgs e)
        {
            //Switches to the product screen
            ProductsView productsView = new ProductsView(WorkingArea);

            MenuButtonDelete.Show();
            MenuButtonDelete.Click += productsView.SimulateDeleteKey;
            //productsView
            SwitchView(productsView);
            MenuButtonProducts.BackColor = Color.DarkSlateBlue;
            MenuPanel.Size = new Size(WorkingArea.Width, 100);
        }