private void CancelButton_Click(object sender, RoutedEventArgs e) { user = new UserDAO().Get(StaticData.UserID); txtUserName.Text = user.UserName; txtPassword.Text = StaticData.Base64Decode(user.Password); txtUserID.Text = user.Id.ToString(); txtRole.Text = user.RoleId.ToString(); txtFullName.Text = user.DisplayName; dpkBirthdate.Text = user.Birthdate.ToString(); txtIdCard.Text = user.IdentityCard; txtAddress.Text = user.Address; }
public UCPersonalInfo() { InitializeComponent(); user = new UserDAO().Get(StaticData.UserID); txtUserName.Text = user.UserName; txtPassword.Text = StaticData.Base64Decode(user.Password); txtUserID.Text = user.Id.ToString(); txtRole.Text = user.RoleId.ToString(); txtFullName.Text = user.DisplayName; dpkBirthdate.Text = user.Birthdate.ToString(); txtIdCard.Text = user.IdentityCard; txtAddress.Text = user.Address; }