Ejemplo n.º 1
0
        private void btnPg9MakePayment_Click(object sender, EventArgs e)
        {
            //ADD ERROR CHECKS FOR CARD DETAILS
            Comfirmation comfirmation = new Comfirmation();

            comfirmation.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
 private void btnNextPage_Click(object sender, EventArgs e)
 {
     //Takes user to next page in navigation
     if (NavIndex < NavPanels.Count - 1)
     {
         NavIndex++;
         LoadPage();
         if (NavIndex == 1)
         {
             //Create new object of new booking and pass it variables
         }
     }
     else if (NavIndex == 8)
     {
         Comfirmation comfirmation = new Comfirmation();
         comfirmation.Show();
         this.Hide();
     }
 }
Ejemplo n.º 3
0
 private void btnNextPage_Click(object sender, EventArgs e)
 {
     //Takes user to next page in navigation
     if (NavIndex < NavPanels.Count - 1)
     {
         PageCheckerSaving();
         NavIndex++;
         LoadPage();
         if (NavIndex == 1)
         {
             //Create new object of new booking and pass it variables
             CurrentBooking.SetupBooking(cbPg1GetLocation.SelectedIndex, Convert.ToInt32(tbPg1NoOfAdults.Text), Convert.ToInt32(tbPg1NoOfChildren.Text));
             CurrentBooking.LocationName = cbPg1GetLocation.Text;
             DisableNavButtons();
         }
     }
     else if (NavIndex == 8)
     {
         WriteToCSV();
         Comfirmation comfirmation = new Comfirmation();
         comfirmation.Show();
         this.Hide();
     }
 }