Esempio n. 1
0
 public EditAccountPage(Patient p, AccountsPage parent)
 {
     InitializeComponent();
     _tempPatient              = p;
     usernameTxt.Text          = p.Username;
     nameTxt.Text              = p.Name;
     surnameTxt.Text           = p.Surname;
     date.SelectedDate         = p.DateOfBirth;
     numberTxt.Text            = p.PhoneNumber;
     parentsNameTxt.Text       = p.ParentsName;
     emailTxt.Text             = p.Email;
     genderTxt.Text            = p.Gender;
     jmbgTxt.Text              = p.Jmbg;
     bloodCmb.SelectedItem     = p.Blood;
     lboTxt.Text               = p.LBO;
     isGuestCheckbox.IsChecked = p.IsGuest;
     ParentPage = parent;
 }
Esempio n. 2
0
 public AddAccountPage(AccountsPage accountsPage)
 {
     InitializeComponent();
     ParentPage = accountsPage;
 }