Ejemplo n.º 1
0
        public HistoryPatient(Model.PatientDTO loggedInPatient)
        {
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            InitializeComponent();
            app = Application.Current as App;

            PatientNameAndSurname             = loggedInPatient.FirstName + " " + loggedInPatient.LastName;
            PatientNameAndSurnameTextBox.Text = PatientNameAndSurname;
            medicalAppointmentDTOs            = (List <MedicalAppointmentDTO>)app.MedicalAppointmentController.GetAllByPatientID(loggedInPatient.Id);
            HistoryPatientList.ItemsSource    = medicalAppointmentDTOs;
        }
Ejemplo n.º 2
0
        public RegisterPatient()
        {
            InitializeComponent();
            this.DataContext = this;

            RegisteringPatient = new Model.PatientDTO()
            {
                DateOfBirth = DateTime.Now, Address = new Model.AddressDTO()
            };
            app = Application.Current as App;
            //Profile
            //RegisteringPatient = new Model.PatientDTO() { FirstName = "Uros", LastName = "Milovanovic",
            //    DateOfBirth = new DateTime(1998, 8, 25), Email = "*****@*****.**", Gender = "Male",
            //    InsurenceNumber = "1234567", Jmbg = "1234567890", TelephoneNumber = "06551232123",
            //    Address = new Model.AddressDTO(){ City = "Novi Sad", Country = "Serbia", Number = "25", PostCode = "21000", Street = "Petra Petrovica" } };
        }