Beispiel #1
0
        public MedicalDeparmentsViewByPatientsViewModel(MedicalDeparmentsViewByPatients medicalDeparmentsViewByPatientOpen)
        {
            medicalDeparmentsViewByPatient = medicalDeparmentsViewByPatientOpen;

            using (Service1Client wcf = new Service1Client())
            {
                MedicalDepartmentsList = wcf.GetAllMedicalDepartments().ToList();
            }
        }
 private void MedicalDepartmentExecute()
 {
     try
     {
         MedicalDeparmentsViewByPatients view = new MedicalDeparmentsViewByPatients();
         patientChoice.Close();
         view.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }