public PatientManagementWindow(PatientManager patientmanager) { InitializeComponent(); VM = new PatientManagementView(patientmanager); DataContext = VM; }
public MedicalRecordWindow(PatientManagementView pmv) { InitializeComponent(); VM = pmv; MedicalRecord = VM.ClonedMedicalRecord; DataContext = VM; }
public ProcedureWindow(PatientManagementView pmv) { InitializeComponent(); Procedure = new Procedure(); Procedure.Responsible = pmv.Patientmanager.AppManager.ApplicationUser; FilesToSave = new List <Attachment>(); WardsList = pmv.Patientmanager.AppManager.ApplicationDb.Wards.ToList(); VM = pmv; DataContext = this; }
public ProcedureWindow(PatientManagementView pmv) { InitializeComponent(); Procedure = new Procedure(); Procedure.Responsible = pmv.Patientmanager.AppManager.ApplicationUser; FilesToSave = new List<Attachment>(); WardsList = pmv.Patientmanager.AppManager.ApplicationDb.Wards.ToList(); VM = pmv; DataContext = this; }
public ProcedureWindow(Procedure procedure, PatientManagementView pmv) { InitializeComponent(); VM = pmv; Procedure = (Procedure)procedure.Clone(); FilesToSave = new List <Attachment>(); LocalPathToSave = new List <string>(); WardsList = pmv.Patientmanager.AppManager.ApplicationDb.Wards.ToList(); DataContext = this; // disable UI elements for procedure editing: TextBox_Price.IsEnabled = false; ListBox_Ward.IsEnabled = false; ListBox_ProcedureType.IsEnabled = false; }
public ProcedureWindow(Procedure procedure, PatientManagementView pmv) { InitializeComponent(); VM = pmv; Procedure = (Procedure)procedure.Clone(); FilesToSave = new List<Attachment>(); LocalPathToSave = new List<string>(); WardsList = pmv.Patientmanager.AppManager.ApplicationDb.Wards.ToList(); DataContext = this; // disable UI elements for procedure editing: TextBox_Price.IsEnabled = false; ListBox_Ward.IsEnabled = false; ListBox_ProcedureType.IsEnabled = false; }