Ejemplo n.º 1
0
        public Statistic()
        {
            dirTemp = @"d:\Temp\Extracted1\";
            uow     = new UnitOfWork();
            // ReSharper disable once CollectionNeverUpdated.Local
            var clients = new XPCollection <ClientXPO>(uow);

            clients.ForEach(item => item.AddFields());
            uow.CommitChanges();

            clientsDics = new XPCollection <ClientXPO>(uow).ToDictionary(GetClientID,
                                                                         item => item);

            dirScreenshots = @"c:\Temp\Screeens";

            if (!Directory.Exists(dirScreenshots))
            {
                Directory.CreateDirectory(dirScreenshots);
            }
            GetStatisticData();
        }