private void btnNext_Click(object sender, EventArgs e) { firstName = HelperClass.StringWashName(txtFirstName.Text); lastName = HelperClass.StringWashName(txtLastName.Text); HelperClass.functions.AddCustomer(phoneNumber, firstName, lastName); var confirmationBookingForm = new ConfirmBookingForm(); this.Hide(); confirmationBookingForm.Show(); }
private void btnNext_Click(object sender, EventArgs e) { phoneNumber = HelperClass.StringWashPhone(txtPhoneNumber.Text); if (!HelperClass.functions.CustomerExists(phoneNumber)) { var newCustomerForm = new NewCustomerForm(); this.Hide(); newCustomerForm.Show(); } else { var confirmationBookingForm = new ConfirmBookingForm(); this.Hide(); confirmationBookingForm.Show(); }; }