Esempio n. 1
0
        private void FillSectionTotals(ITenantDBsDir dir)
        {
            SectionTotals.Clear();

            foreach (var sec in dir.MarketState.Sections.GetAll())
            {
                SectionTotals.Add(sec.Id, GetCollectionAmounts(sec.Id));
            }

            SectionTotals.Add(0, GetCollectionAmounts(0));
        }
Esempio n. 2
0
        public void RemoveZeroSections()
        {
            var zeroSecs = SectionTotals.Where(_ => _.Value.Total == 0)
                           .Select(_ => _.Key).ToList();

            foreach (var secId in zeroSecs)
            {
                Sections.Remove(secId);
                SectionTotals.Remove(secId);
            }
        }