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; }
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" } }; }