예제 #1
0
        private void buttonRegistration_Click(object sender, EventArgs e)
        {
            Sound.MakeSound("ButtonClick");

            if (radioButtonUser.Checked)
            {
                this.Hide();
                Registration registration = new Registration(gunaCheckBox1.Checked);
                registration.ShowDialog();
                OrderTaxiForm orderTaxi = new OrderTaxiForm(gunaCheckBox1.Checked);
                orderTaxi.ShowDialog();

                this.Close();
            }
            else
            {
                this.Hide();
                RegistrationTaxist registrationTaxist = new RegistrationTaxist(gunaCheckBox1.Checked);
                registrationTaxist.ShowDialog();
                this.Close();
            }
        }
예제 #2
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            Sound.MakeSound("ButtonClick");

            if (radioButtonUser.Checked)
            {
                this.Hide();
                Login login = new Login(gunaCheckBox1.Checked);
                login.ShowDialog();
                OrderTaxiForm orderTaxi = new OrderTaxiForm(gunaCheckBox1.Checked);
                orderTaxi.ShowDialog();

                this.Close();
            }
            else
            {
                this.Hide();
                LoginTaxist loginTaxist = new LoginTaxist(gunaCheckBox1.Checked);
                loginTaxist.ShowDialog();

                this.Close();
            }
        }