private Cache()
        {
            Inventory = new ActiveInventoryCollection();
            Inventory.Load(InventoryFile);
            InventoryActivity = new TransactionCollection();
            InventoryActivity.Load(InventoryActivityFile);

            ReadyForOpenCartUpdate = new TransactionCollection();
            ReadyForOpenCartUpdate.Load(ReadyToPostFile);

            if (Configuration.Current.FileVersion < Configuration.CurrentFileVersion)
            {
                DoVersionUpdateProcess();
            }

            CurrentFinancials = new FinancialObjectCollection();
            CurrentFinancials.Load(FinancialsFile);


            StagedFinancials = new FinancialObjectCollection();
            StagedFinancials.Load(StagedFinancialsFile);
        }
Beispiel #2
0
        public void Test()
        {
            collection = new TransactionCollection();
            collection.Load();
            //collection.Print();


            analyzer = new DataAnalyzer(collection);
            //Console.WriteLine(analyzer.ComputeBalance("6/1/2017", "6/30/2017").PlannedBalance);
            //Console.WriteLine(analyzer.Noitify(analyzer.ComputeBalance("6/1/2017", "6/30/2017")));

            //Console.WriteLine("Categories:");
            //foreach (string category in collection.GetCategories())
            //{
            //    Console.WriteLine(category);
            //}

            //var data = analyzer.ComputeDataForEachMonth();
            //foreach (Data d in data)
            //{
            //    Console.WriteLine(d);
            //}
        }