Пример #1
0
        static void Main(string[] args)
        {
            EasyThingGenerator generator = new EasyThingGenerator();

            generator.PopulateManagerFromExcelUsingDb("C:\\easyloto.xlsx");

            //var ordernede = Manager.Instance.LastTenResults.OrderBy(x => x.Key);

            var howmany = Manager.Instance.HowMany.OrderBy(x => x.Value);

            var abc = Manager.Instance.HowMany.OrderBy(x => x.Key);
        }
Пример #2
0
        private IEnumerable<ResultViewModel> GenerateResults()
        {
            EasyThingGenerator generator = new EasyThingGenerator();

            generator.PopulateManagerFromExcelUsingDb("C:\\easyloto.xlsx");

            var orderedHowManyResults = Manager.Instance.HowMany.OrderBy(x => x.Value);

            foreach (var result in orderedHowManyResults)
            {
                yield return new ResultViewModel { Number = result.Key, Quantity = result.Value };
            }
        }