Пример #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);
        }
Пример #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();
        }