private void HospitalReviewButton_Click(object sender, RoutedEventArgs e) { if (HospitalReviewValidation()) { ReviewHospitalWindow window = new ReviewHospitalWindow(_loggedInPatient); window.Show(); this.Hide(); } else { MessageBox.Show("Niste imali dovoljno pregleda od prethodnog puta kada ste ocenjivali bolnicu da bi ste je ponovo ocenjivali.", "Ocenjivanje bolnice", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void ShowHospitalReviewWindow() { ReviewHospitalWindow window = new ReviewHospitalWindow(this._loggedInPatient); window.ShowDialog(); }