コード例 #1
0
        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();
        }
コード例 #2
0
        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();
            };
        }