示例#1
0
 private void ButtonLogin_Click(object sender, RoutedEventArgs e)
 {
     if (radioButtonUser.IsChecked == true)
     {
         LoginUser loginUser = new LoginUser();
         this.Hide();
         loginUser.ShowDialog();
         OrderTaxiForm orderTaxi = new OrderTaxiForm();
         orderTaxi.ShowDialog();
     }
     else
     {
         LoginTaxist loginTaxist = new LoginTaxist();
         this.Close();
         loginTaxist.ShowDialog();
     }
 }
示例#2
0
 private void ButtonRegistration_Click(object sender, RoutedEventArgs e)
 {
     if (radioButtonUser.IsChecked == true)
     {
         RegistrationUser registrationUser = new RegistrationUser();
         this.Hide();
         registrationUser.ShowDialog();
         OrderTaxiForm orderTaxi = new OrderTaxiForm();
         this.Close();
         orderTaxi.ShowDialog();
     }
     else
     {
         RegistrationTaxist registrationTaxist = new RegistrationTaxist();
         this.Close();
         registrationTaxist.ShowDialog();
     }
 }