Exemplo n.º 1
0
 private void loadCartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (СartForm cartForm = new СartForm(Manager, true))
     {
         this.Hide();
         cartForm.ShowDialog();
         this.Show();
     }
 }
Exemplo n.º 2
0
 private void viewCartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Manager.userCart.Items.Count > 0)
     {
         using (СartForm cartForm = new СartForm(Manager, false))
         {
             this.Hide();
             cartForm.ShowDialog();
             this.Show();
         }
     }
     else
     {
         MessageBox.Show("There are no items in the cart");
     }
 }