Пример #1
0
 public void UnsetAccount()
 {
     currentAccount = null;
 }
Пример #2
0
 public void LoadAccount(int accountID, string accountName)
 {
     currentAccount = null;
     currentAccount = new Account();
     currentAccount.Id = accountID;
     currentAccount.Name = accountName;
     currentAccount.Expansion = Convert.ToByte(accountFunctions.GetExpansion(accountID));
     currentAccount.JoinDate = accountFunctions.GetJoinDate(accountID);
     currentAccount.LastIP = accountFunctions.GetLastIP(accountID);
     currentAccount.LastLogin = accountFunctions.GetLastLogin(accountID);
     currentAccount.Email = accountFunctions.GetEmail(accountID);
     LoadPermissionsOfAccount();
     LoadRolesOfAccount();
 }