private void btnCancel_Click(object sender, RoutedEventArgs e) { DetailWindow back = new DetailWindow(pawUser); back.Show(); this.Close(); }
private void entryButton_Click(object sender, RoutedEventArgs e) { PawUserService pawUserService = new PawUserService(); var loginUser = pawUserService.Login(txtUserName.Text, txtUserPassword.Password); if (loginUser == null) { MessageBox.Show("Bilgiler Yanlış"); txtUserName.Text = ""; txtUserPassword.Password = ""; } else { DetailWindow detailWindow = new DetailWindow(loginUser); detailWindow.Show(); this.Close(); } }