public static PatientFeedback GetInstance(Patient patient) { if (instance == null) { instance = new PatientFeedback(patient); } return(instance); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { instance = null; }
private void feedbackButton_Click(object sender, RoutedEventArgs e) { PatientFeedback.GetInstance(_loggedInPatient).Show(); }