Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (eventType == "Hamilton")
     {
         ReserveSeats addseats = new ReserveSeats();
         addseats.eventName = eventType;
         addseats.eventDate = eventDate;
         addseats.ShowDialog();
         this.Close();
     }
     else if (eventType == "Wizard of Oz")
     {
         ReserveSeats addseats = new ReserveSeats();
         addseats.eventName = eventType;
         addseats.eventDate = eventDate;
         addseats.ShowDialog();
         this.Close();
     }
     else if (eventType == "Romeo and Juliet")
     {
         ReserveSeats addseats = new ReserveSeats();
         addseats.eventName = eventType;
         addseats.eventDate = eventDate;
         addseats.ShowDialog();
         this.Close();
     }
     else if (eventType == "Peter Pan")
     {
         ReserveSeats addseats = new ReserveSeats();
         addseats.eventName = eventType;
         addseats.eventDate = eventDate;
         addseats.ShowDialog();
         this.Close();
     }
 }
Ejemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            ReserveSeats makeReservation = new ReserveSeats();

            //from main menu reservation set to peter pan
            makeReservation.eventName = "Peter Pan";
            makeReservation.eventDate = "2020-12-10";
            //if they reset the seats from main menu reservation set back to peter pan
            EventInfo.eventType = "Peter Pan";
            EventInfo.eventDate = "2020-12-10";
            makeReservation.ShowDialog();
        }