示例#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;
        }