Example #1
0
 public AddDoctorAppointmentViewModel(AddDoctorAppointment addDoctorAppointmentOpen, vwDoctorAppointment doctorAppointmentToEdit)
 {
     doctorAppointment    = doctorAppointmentToEdit;
     addDoctorAppointment = addDoctorAppointmentOpen;
     using (Service1Client wcf = new Service1Client())
     {
         PatientsList           = wcf.GetAllPatients().ToList();
         MedicalDepartmentsList = wcf.GetAllMedicalDepartments().ToList();
     }
 }
 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();
     }
 }
 public AddDoctorAppointment(vwDoctorAppointment doctorAppointmentToEdit)
 {
     InitializeComponent();
     this.DataContext = new AddDoctorAppointmentViewModel(this, doctorAppointmentToEdit);
 }