private void AppointmentsButton_Click(object sender, RoutedEventArgs e) { PatientAppointmentCRUDOperationsWindow window = new PatientAppointmentCRUDOperationsWindow(_loggedInPatient); window.Show(); this.Hide(); }
public static PatientAppointmentCRUDOperationsWindow getInstance(Patient patient) { if (_instance == null) { _instance = new PatientAppointmentCRUDOperationsWindow(patient); } return(_instance); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { CheckIfPatientIsTroll(); AppointmentController.getInstance().SaveAppointmentsInFile(); DoctorController.getInstance().SaveInFlie(); PatientController.getInstance().SaveInFile(); _instance = null; }
public EditPatientAppointmentWindow(Appointment forEditing, PatientAppointmentCRUDOperationsWindow window) { InitializeComponent(); this.appointmentForEditing = forEditing; previousWindow = window; LoadDateComboBox(); LoadTimeComboBox(); }
private void Button_Click(object sender, RoutedEventArgs e) { ScheduleNewAppointment(); Serialize(); PatientAppointmentCRUDOperationsWindow.getInstance(_patient).RefreshTable(); }
private void BackButton_Click(object sender, RoutedEventArgs e) { this.Close(); PatientAppointmentCRUDOperationsWindow.getInstance(_patient).Show(); }