public void UnsetAccount()
 {
     currentAccount = null;
 }
 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();
 }