public DoctorAppointmentViewModel(DoctorAppointment doctorAppointmentOpen)
 {
     loginCurrent      = new vwLoginCurrent();
     appointment       = new vwDoctorAppointment();
     doctorAppointment = doctorAppointmentOpen;
     using (Service1Client wcf = new Service1Client())
     {
         PatientsList           = wcf.GetAllPatients().ToList();
         MedicalDepartmentsList = wcf.GetAllMedicalDepartments().ToList();
     }
 }
Example #2
0
 public TakeMedicationViewModel(TakeMedication takeMedicationWindowOpen)
 {
     loginCurrent         = new vwLoginCurrent();
     medicalStaff         = new vwMedicalStaff();
     patients             = new vwPatients();
     pharmacy             = new vwPharmacy();
     takeMedication       = new vwTakeMedication();
     takeMedicationWindow = takeMedicationWindowOpen;
     using (Service1Client wcf = new Service1Client())
     {
         PharmacyList     = wcf.GetAllPharmacy().ToList();
         MedicalStaffList = wcf.GetAllMedicalStaff().ToList();
         PatientsList     = wcf.GetAllPatients().ToList();
     }
 }
 public LoginRegistrationMedicalStaffViewModel(LoginRegistrationMedicalStaff loginOpen)
 {
     loginCurrent = new vwLoginCurrent();
     login        = loginOpen;
 }
 public LoginRegistrationPatientsViewModel(LoginRegistrationPatients loginRegistrationPatientsOpen)
 {
     loginCurrent = new vwLoginCurrent();
     loginRegistrationPatients = loginRegistrationPatientsOpen;
 }