public DataTable GetAccounts() { AccountDataHandler dh = new AccountDataHandler(); dt = dh.GetAccounts("Account"); return(dt); }
//Method for reading accounts accessed from the data handler public List <Account> ReadAccounts() { List <Account> AccountData = new List <Account>(); DataSet GetAccounts = new AccountDataHandler().ReadAccounts("Account"); foreach (DataRow item in GetAccounts.Tables["Account"].Rows) { AccountData.Add(new Account(int.Parse(item["AccountID"].ToString()), item["ClientID"].ToString(), item["AccountNumber"].ToString(), item["AccountType"].ToString(), item["BillingType"].ToString(), item["BankName"].ToString())); } return(AccountData); }
/// <summary> /// Called within Map Context. /// Sends initial packets /// </summary> private void OnLogin() { InstanceHandler.SendDungeonDifficulty(this); CharacterHandler.SendVerifyWorld(this); AccountDataHandler.SendAccountDataTimes(m_client); VoiceChatHandler.SendSystemStatus(this, VoiceSystemStatus.Disabled); // SMSG_GUILD_EVENT // SMSG_GUILD_BANK_LIST CharacterHandler.SendBindUpdate(this, BindLocation); TutorialHandler.SendTutorialFlags(this); SpellHandler.SendSpellsAndCooldowns(this); CharacterHandler.SendActionButtons(this); FactionHandler.SendFactionList(this); // SMSG_INIT_WORLD_STATES // SMSG_EQUIPMENT_SET_LIST AchievementHandler.SendAchievementData(this); // SMSG_EXPLORATION_EXPERIENCE CharacterHandler.SendTimeSpeed(this); TalentHandler.SendTalentGroupList(m_talents); AuraHandler.SendAllAuras(this); // SMSG_PET_GUIDS }