//Hide all the panels private void HideAllPanels() { CP_pnlVoorraad.Hide(); CP_pnlMedewerkers.Hide(); CP_pnlMenukaarten.Hide(); CP_pnlInkomsten.Hide(); }
//Highlight the button, set the text in the top bar, hide all other panels, show correct panel private void CP_btnMenukaarten_Click(object sender, EventArgs e) { SetHightlight(CP_btnMenukaarten); CP_lblActivePanel.Text = "Menukaarten"; HideAllPanels(); CP_pnlMenukaarten.Show(); LoadMenukaartenDrinks(); }