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