public DoctorAppointmentAddEditViewModel(DoctorAppointmentAddEdit doctorAppointmentAddEditOpen) { doctorAppointmentAddEdit = doctorAppointmentAddEditOpen; using (Service1Client wcf = new Service1Client()) { DoctorAppointmentList = wcf.GetAllDoctorAppointment().ToList(); } }
private void DoctorAppointmentExecute() { try { DoctorAppointmentAddEdit view = new DoctorAppointmentAddEdit(); view.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }