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; }
public AddAccountPage(AccountsPage accountsPage) { InitializeComponent(); ParentPage = accountsPage; }