Пример #1
0
        public PatientManagementWindow(PatientManager patientmanager)
        {
            InitializeComponent();

            VM = new PatientManagementView(patientmanager);

            DataContext = VM;
        }
Пример #2
0
        public MedicalRecordWindow(PatientManagementView pmv)
        {
            InitializeComponent();

            VM = pmv;

            MedicalRecord = VM.ClonedMedicalRecord;

            DataContext = VM;
        }
        public MedicalRecordWindow(PatientManagementView pmv)
        {
            InitializeComponent();

            VM = pmv;

            MedicalRecord = VM.ClonedMedicalRecord;

            DataContext = VM;
        }
Пример #4
0
        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;
        }
Пример #6
0
        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;
        }