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(); } }
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(); } }