public static DoctorShowAppointmentInformationWindow GetInstance(Appointment appointmentToShow, Doctor loggedDoctor) { if (instance == null) { instance = new DoctorShowAppointmentInformationWindow(appointmentToShow, loggedDoctor); } return(instance); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) => instance = null;