Пример #1
0
 public static PatientFeedback GetInstance(Patient patient)
 {
     if (instance == null)
     {
         instance = new PatientFeedback(patient);
     }
     return(instance);
 }
Пример #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }
 private void feedbackButton_Click(object sender, RoutedEventArgs e)
 {
     PatientFeedback.GetInstance(_loggedInPatient).Show();
 }