private void AppointmentsButton_Click(object sender, RoutedEventArgs e)
        {
            PatientAppointmentCRUDOperationsWindow window = new PatientAppointmentCRUDOperationsWindow(_loggedInPatient);

            window.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 public static PatientAppointmentCRUDOperationsWindow getInstance(Patient patient)
 {
     if (_instance == null)
     {
         _instance = new PatientAppointmentCRUDOperationsWindow(patient);
     }
     return(_instance);
 }
Exemplo n.º 3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     CheckIfPatientIsTroll();
     AppointmentController.getInstance().SaveAppointmentsInFile();
     DoctorController.getInstance().SaveInFlie();
     PatientController.getInstance().SaveInFile();
     _instance = null;
 }
Exemplo n.º 4
0
 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();
 }