コード例 #1
0
 public User(string Firstname, string Lasttname, string Username, string Password, string Email, bool IsAdmin, WishList wish)
 {
     this.Firstname = Firstname;
     this.Lastname  = Lastname;
     this.Username  = Username;
     this.Password  = Password;
     this.Email     = Email;
     this.IsAdmin   = false;
     this.wish      = new WishList();
 }
コード例 #2
0
        public void registerUser(string Firstname, string Lasttname, string Username, string Password, string Email, bool IsAdmin, WishList wish)
        {
            User user = new User(Firstname, Lasttname, Username, Password, Email, IsAdmin, wish);

            userList.Add(user);
        }