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; }
public static void DeleteUser(Pages.Views.UsersView u) { Model.User user = SearchUser(u.Username); Users.Remove(user); }