Пример #1
0
        private void memMealHistory_Click(object sender, EventArgs e)
        {
            SeeBookedMeal bookedMeal = new SeeBookedMeal(this);

            bookedMeal.Show(this);
            this.Hide();
        }
Пример #2
0
 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();
     }
 }
Пример #3
0
 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();
     }
 }
Пример #4
0
 public EditMealChart(SeeBookedMeal seeBookedMeal)
 {
     InitializeComponent();
     backToSeaBM = true;
 }