Пример #1
0
        //
        private void btnAddBooking_Click(object sender, EventArgs e)
        {
            FormAddBooking frmAddBooking = new FormAddBooking(frmMain);

            frmAddBooking.Show();
            this.Dispose();
        }
 //Back Button
 private void btnBack_Click(object sender, EventArgs e)
 {
     if (frmAddBooking != null)
     {
         frmAddBooking.Show();
         this.Dispose();
     }
     else
     {
         FormCustomer frmCustomer = new FormCustomer(frmMain);
         frmCustomer.Show();
         this.Dispose();
     }
 }
Пример #3
0
 //Back Button
 private void btnBack_Click(object sender, EventArgs e)
 {
     if (frmAddBooking != null)
     {
         frmAddBooking.Show();
         this.Dispose();
     }
     else
     {
         FormFlight frmFlight = new FormFlight(frmMain);
         frmFlight.Show();
         this.Dispose();
     }
 }