Ejemplo n.º 1
0
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            patient             = uc2ManagePatient.GetPatientInformationRegionsDatabase(_clinicianMainWindow.Patient.CPR);
            patient.Email       = TBEmail.Text;
            patient.MobilNummer = TBPhonenumber.Text;

            uc2ManagePatient.SavePatient(patient);

            _clinicianMainWindow.Patient = uc2ManagePatient.GetPatientInformation(patient.CPR);

            MessageBox.Show("Patienten er gemt i databasen");

            BtnSave.IsEnabled = false;
        }
Ejemplo n.º 2
0
        private void PatientPage1_Loaded(object sender, RoutedEventArgs e)
        {
            if (_clinicianMainWindow.LoginOK)
            {
                patient            = uc2ManagePatient.GetPatientInformation(_clinicianMainWindow.Patient.CPR);
                TBname.Text        = patient.Name;
                TBsurname.Text     = patient.Lastname;
                TBCPR.Text         = patient.CPR;
                TBAddress.Text     = patient.Adress;
                TbCity.Text        = patient.City;
                TbZipcode.Text     = Convert.ToString(patient.zipcode);
                TBPhonenumber.Text = patient.MobilNummer;
                TBEmail.Text       = patient.Email;

                TBname.IsEnabled        = false;
                TBsurname.IsEnabled     = false;
                TBCPR.IsEnabled         = false;
                TBAddress.IsEnabled     = false;
                TbCity.IsEnabled        = false;
                TbZipcode.IsEnabled     = false;
                TBEmail.IsEnabled       = false;
                TBPhonenumber.IsEnabled = false;
                BtnSave.IsEnabled       = false;
            }
            if (_clinicianMainWindow.RegionLoginOK)
            {
                patient            = uc2ManagePatient.GetPatientInformationRegionsDatabase(_clinicianMainWindow.Patient.CPR);
                TBname.Text        = Convert.ToString(patient.Name);
                TBsurname.Text     = patient.Lastname;
                TBCPR.Text         = patient.CPR;
                TBAddress.Text     = patient.Adress;
                TbCity.Text        = patient.City;
                TbZipcode.Text     = Convert.ToString(patient.zipcode);
                TBPhonenumber.Text = patient.MobilNummer;
                TBEmail.Text       = patient.Email;

                TBname.IsEnabled        = false;
                TBsurname.IsEnabled     = false;
                TBCPR.IsEnabled         = false;
                TBAddress.IsEnabled     = false;
                TbCity.IsEnabled        = false;
                TbZipcode.IsEnabled     = false;
                TBEmail.IsEnabled       = false;
                TBPhonenumber.IsEnabled = false;
                bntUpdate.IsEnabled     = false;
            }

            _clinicianMainWindow.Patient = patient;
        }
Ejemplo n.º 3
0
        public void GetPatientInformation_ExpectedResult_CallGetPatient(string cpr)
        {
            uut.GetPatientInformation(cpr);

            clinicDatabase.Received(1).GetPatient(cpr);
        }