Ejemplo n.º 1
0
 public CLWTabPage(TabStripTest parent)
 {
     InitializeComponent();
     Parent = parent;
     tickInterval = new TimeSpan(0, 0, 1);
     refreshInterval = new TimeSpan(0, 0, 0);
     Keywords_ = new List<string>();
     previousRefreshMin1 = 0;
     Min1 = 0;
     Min2 = 0;
     Sec1 = 0;
     Sec2 = 0;
     pollHandler = new PollHandler(this);
     Locations.Instance.PopulateTreeView(ref this.trAreas);
     Sections.Instance.PopulateTreeView(ref this.trSections);
     this.wbEntries.Navigate("about:blank");
     this.wbEntries.Document.OpenNew(true);
     this.wbEntries.Refresh();
 }
Ejemplo n.º 2
0
 public BackgroundPoller(PollHandler parent, ref CityDetails details, HtmlParser.ParseFilter filter)
     : base(false, EventResetMode.ManualReset)
 {
     Parent_ = parent;
     Details_ = details;
     matchingEntriesFound = 0;
     Worker_ = new BackgroundWorker();
     filter_ = filter;
     entries_searched_ = 0;
     stop_watch_ = new System.Diagnostics.Stopwatch();
     Worker_.DoWork += this.PollCity;
     Worker_.RunWorkerCompleted += this.PollDone;
     Worker_.RunWorkerAsync();
 }