private void memMealHistory_Click(object sender, EventArgs e) { SeeBookedMeal bookedMeal = new SeeBookedMeal(this); bookedMeal.Show(this); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (managerBack != null) { this.Hide(); EditBzaar editbazar = new EditBzaar(this); editbazar.Show(this); } else { MessageBox.Show("You are not a Manager.\nYou can't Access this section. ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Hide(); SeeBookedMeal s = new SeeBookedMeal(); s.Show(); } }
private void button3_Click(object sender, EventArgs e) { if (backToAdmin == true) { this.Hide(); AdminSession AS = new AdminSession(); AS.Show(); } else if (backToSeaBM == true) { this.Hide(); SeeBookedMeal sbm = new SeeBookedMeal(new Manager()); sbm.Show(); } else { this.Hide(); Notification nf = new Notification(); nf.Show(); } }