private void btnPg9MakePayment_Click(object sender, EventArgs e) { //ADD ERROR CHECKS FOR CARD DETAILS Comfirmation comfirmation = new Comfirmation(); comfirmation.Show(); this.Hide(); }
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(); } }
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(); } }