コード例 #1
0
 public static DoctorShowAppointmentInformationWindow GetInstance(Appointment appointmentToShow, Doctor loggedDoctor)
 {
     if (instance == null)
     {
         instance = new DoctorShowAppointmentInformationWindow(appointmentToShow, loggedDoctor);
     }
     return(instance);
 }
コード例 #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) => instance = null;