コード例 #1
0
        private AccountFundEventDB AddNewAccount(string account)
        {
            AccountFundEventDB db = new AccountFundEventDB();

            db.Account = account;
            m_accounts.Add(account, db);

            return(db);
        }
コード例 #2
0
        public void Remove(string account)
        {
            if (m_accounts.ContainsKey(account))
            {
                m_accounts.Remove(account);
            }

            AccountFundEventDB db = new AccountFundEventDB();

            db.Account = account;
            db.Clear();
        }
コード例 #3
0
        public Dictionary <string, List <FundEvent> > Load(List <string> accounts)
        {
            Dictionary <string, List <FundEvent> > res = new Dictionary <string, List <FundEvent> >();

            if (accounts != null && accounts.Count > 0)
            {
                foreach (string account in accounts)
                {
                    AccountFundEventDB db = AddNewAccount(account);
                    res.Add(account, db.Load());
                }
            }

            return(res);
        }