private void Cycle(object sender, EventArgs eventArgs) { List <bool> stop = new List <bool>(); foreach (var enumPage in PageFactory.PageDictionary) { List <AncillaryAbstractClass> lista; if (enumPage.Value.DocumentText.Length > 10) { if (MainFactory.GetMainClass(enumPage.Key).CanScrool()) { enumPage.Value.Document.Body.ScrollIntoView(false); } bool ready = MainFactory.GetMainClass(enumPage.Key).AmReady(); if (!ready) { lista = MainFactory.GetMainClass(enumPage.Key).GetData(enumPage.Value.DocumentText); } stop.Add(ready); } if (stop.All(x => x)) { //todo save data(lista) //Restart(); } } }
private void Cycle(object sender, EventArgs eventArgs) { List <AncillaryAbstractClass> lista; if (w.DocumentText.Length > 10) { if (MainFactory.GetMainClass(ee).CanScrool()) { w.Document.Body.ScrollIntoView(false); } bool ready = MainFactory.GetMainClass(ee).AmReady(); if (!ready) { lista = MainFactory.GetMainClass(ee).GetData(w.DocumentText); } } }
public void GetObjTest() { var obj = MainFactory.GetMainClass(EnumPages.Friends); }