private void _CloseButton_Click(object sender, RoutedEventArgs e) { ChooseWindow ChooseWindow = new ChooseWindow(); ChooseWindow.Show(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { try { if (PartSystem.TryLogin(LoginBox.Text, PassBox.Password)) { ChooseWindow choosewindow = new ChooseWindow(); choosewindow.Show(); this.Close(); } else { MessageBox.Show("Błędne dane"); } } catch (Exception ex) { } }