Exemplo n.º 1
0
        private bool LoadAllHistory()
        {
            HistoryBillDB db    = new HistoryBillDB();
            var           bills = db.Load();

            if (bills == null || bills.Count == 0)
            {
                return(false);
            }

            WashBills(bills);
            return(true);
        }
Exemplo n.º 2
0
        public void Clear()
        {
            // history
            m_billDB.Clear();
            m_accountBD.Clear();
            m_fundEventDB.Clear();
            var historyDB = new HistoryBillDB();

            historyDB.Clear();

            // cache
            AccountBook.GetInstance().Clear();
            BillBook.GetInstance().Clear();

            ResetView();
        }