public void AddAccount(int index, CTwitterAccountInformation accountInformation)
        {
            if (!accountInformation.TokenInfo.Secured)
            {
                EncryptAccessTokens(accountInformation);
            }

            AccountInformations.Insert(index, accountInformation);
        }
        public int GetAccountIndex(long accountId)
        {
            int index = -1;

            AccountInformations.ForEach(i => {
                if (i.AccountID == accountId)
                {
                    index = AccountInformations.IndexOf(i);
                }
            });

            return(index);
        }
        public CTwitterAccountInformation FindAccountById(long accountId)
        {
            CTwitterAccountInformation item = null;

            AccountInformations.ForEach(i => {
                if (i.AccountID == accountId)
                {
                    item = i;
                }
            });

            return(item);
        }
 public void RemoveAccount(CTwitterAccountInformation accountInformation)
 => AccountInformations.Remove(accountInformation);
 public void RemoveAccount(long accountId)
 => AccountInformations.Remove(FindAccountById(accountId));
 public int GetAccountIndex(CTwitterAccountInformation accountInformation)
 => AccountInformations.IndexOf(accountInformation);