/// <summary> /// Creates or updates the account. /// </summary> /// <returns></returns> public Account CreateOrUpdate() { // Checks whether this account already exists to update it. var account = EveClient.Accounts[m_userID]; if (account != null) { account.UpdateAPIKey(m_apiKey, m_keyLevel, m_identities, m_serialCharacterList); // Collection did not change but there is no "AccountChanged" event EveClient.OnAccountCollectionChanged(); } else { account = new Account(m_userID); account.UpdateAPIKey(m_apiKey, m_keyLevel, m_identities, m_serialCharacterList); EveClient.Accounts.Add(account, true); } return(account); }
/// <summary> /// Creates or updates the account. /// </summary> /// <returns></returns> public Account CreateOrUpdate() { // Checks whether this account already exists to update it. var account = EveClient.Accounts[m_userID]; if (account != null) { account.UpdateAPIKey(m_apiKey, m_keyLevel, m_identities, m_serialCharacterList, m_serialAccountStatus); // Collection did not change but there is no "AccountChanged" event EveClient.OnAccountCollectionChanged(); } else { account = new Account(m_userID); account.UpdateAPIKey(m_apiKey, m_keyLevel, m_identities, m_serialCharacterList, m_serialAccountStatus); EveClient.Accounts.Add(account, true); } return account; }