private static void ButtonToCart_Click(object sender, EventArgs e) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; Cart cartPage = new Cart(form.user, form.client); cartPage.Show(); form.Close(); }
private static void ButtonClient_Click(object sender, EventArgs e) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; ClientIdentification clientIdentificationPage = new ClientIdentification(form.user, form.client); clientIdentificationPage.Show(); form.Close(); }
private static void ButtonLogoutUser_Click(object sender, EventArgs e) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; UserLoginPage LoginPage = new UserLoginPage(); LoginPage.Show(); form.Close(); }
private static void ButtonReturnToStock_Click(object sender, EventArgs e) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; Stock stock = new Stock(form.user); stock.Show(); form.Close(); }
private static void ButtonReturnToMenus_Click(object sender, EventArgs e) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; MenusSelectionPage menusSelectionPage = new MenusSelectionPage(form.user); menusSelectionPage.Show(); form.Close(); }
private static void ButtonQuit_Click(object sender, EventArgs e) { if (MessageBox.Show("Exit application?", "Bovélo", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { Control button = (Control)sender; BoveloBaseForm form = (BoveloBaseForm)button.Parent; form.Close(); Environment.Exit(0); } }