Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (seatCheck((int)amountNum.Value))
     {
         Hide();
         ChooseSeats form = new ChooseSeats(HallID, (int)amountNum.Value, DateID, MovieID, HallNumber);
         form.ShowDialog();
         Close();
     }
     else
     {
         DialogResult result = MessageBox.Show("There are not enough seats in the hall. Would you like to try another amount?", "Not Enough", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (result == DialogResult.No)
         {
             Hide();
             HomeScreen form = new HomeScreen();
             form.ShowDialog();
             Close();
         }
     }
 }