Beispiel #1
0
 public static bool SignUp(string username, string password, AccountPermissionTypes permissionType)
 {
     if (!AccountsDict.ContainsKey(username))
     {
         Account newAccount = new Account(username, password, permissionType);
         AccountsDict.Add(username, newAccount);
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 public Account(string username, string password, AccountPermissionTypes permissionType)
 {
     Username       = username;
     Password       = password;
     PermissionType = permissionType;
 }