private AccountFundEventDB AddNewAccount(string account) { AccountFundEventDB db = new AccountFundEventDB(); db.Account = account; m_accounts.Add(account, db); return(db); }
public void Remove(string account) { if (m_accounts.ContainsKey(account)) { m_accounts.Remove(account); } AccountFundEventDB db = new AccountFundEventDB(); db.Account = account; db.Clear(); }
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); }