Пример #1
0
        private void scraper_Tick(object sender, EventArgs e)
        {
            // Scrape all events in queue
            ScraperTimer Timer = sender as ScraperTimer;

            Parallel.ForEach(Timer.EventsToScrape, (EventTuple) =>
            {
                Controller.ScrapeEvent(EventTuple.Item1);
            });
        }
Пример #2
0
        public ArbyForm()
        {
            InitializeComponent();
            Model            = new MatchbookModel();
            Controller       = new MatchbookController();
            Controller.Model = Model;
            Controller.Form  = this;
            Settings         = SettingsHelper.GetDefaultSettingsData();
            Timer            = new UpdateGUITimer();
            Scraper          = new ScraperTimer();


            UpdateSettings();
            Timer.Start();
            Scraper.Tick += new EventHandler(scraper_Tick);
            Scraper.Start();
        }