private void Button_Back_Click(object sender, RoutedEventArgs e) { navWindow nav = new navWindow(); nav.Show(); Close(); }
private void Button_Login_Click(object sender, RoutedEventArgs e) { string userLogin = TextBoxLogin.Text; string userPass = TextBoxPass.Password; if (db.SignUpData.Where(u => u.Login == userLogin && u.Password == userPass).FirstOrDefault() != null) { navWindow window = new navWindow(); window.Show(); Close(); } else { MessageBox.Show("Неверный пароль или логин!"); } }