Exemplo n.º 1
0
 private void CallEvent(ClinicEventArgs e, ClinicStateHandler handler)
 {
     if (e != null && handler != null)
     {
         handler(this, e);
     }
 }
Exemplo n.º 2
0
 public void Open(ClinicStateHandler addPersonHandler, ClinicStateHandler setDiagnoseHandler,
                  ClinicStateHandler bookAppointmentHandler, ClinicStateHandler seeHistoryHandler, ClinicStateHandler checkIfDoctorPresent)
 {
     Added            += addPersonHandler;
     Booked           += bookAppointmentHandler;
     Diagnosed        += setDiagnoseHandler;
     SeenHistory      += seeHistoryHandler;
     CheckedIfPresent += checkIfDoctorPresent;
 }