Exemplo n.º 1
0
        // brings user to createBookingForm
        private void CreateButton_Click(object sender, EventArgs e)
        {
            CreateBookingForm createBookingForm = new CreateBookingForm();

            createBookingForm.Show();
            this.Close();
        }
        private void CreateButton_Click(object sender, EventArgs e)
        {
            //store textboxes text to global variables
            nameText        = FirstNameTextBox.Text + " " + LastNameTextBox.Text;
            companyNameText = CompanyNameTextBox.Text;
            emailText       = EmailTextBox.Text;

            //if user enter FirstName and Email
            if (FirstNameTextBox.Text != "" && EmailTextBox.Text != "")
            {
                //Jump to CreateBookingForm
                CreateBookingForm createBookingForm = new CreateBookingForm();
                createBookingForm.Show();
                this.Hide();
            }
        }