Ejemplo n.º 1
0
 public UpdateUserPage(Pages.Views.UsersView u)
 {
     InitializeComponent();
     this.Username.Text         = u.Username;
     this.Phone.Text            = u.Phone;
     this.Password.Password     = u.Password;
     this.Email.Text            = u.Email;
     this.Name.Text             = u.Name;
     this.Nickname.Text         = u.Nickname;
     this.CreditCardNumber.Text = u.CreditCardNumber;
 }
Ejemplo n.º 2
0
 public static void DeleteUser(Pages.Views.UsersView u)
 {
     Model.User user = SearchUser(u.Username);
     Users.Remove(user);
 }