public void Now() { // 9F string site = "https://en.wikipedia.org/wiki/BR_Standard_Class_9F"; string file = DownloadServices.Download(site, "Loco9f"); var table = GetTable(file, "Type and origin"); string name = table.GetDisplayText("Designer"); string Builddate = table.GetDisplayText("Build date"); Console.WriteLine(name); }
public MainWindow() { InitializeComponent(); DownloadServices ds = ServiceLocator.Instance.GetService <DownloadServices>(); ds.CacheFolder = _cacheFolder; //var ldb = LocomotiveDBServices.GetDBServices(); //ldb.Init(); //myList.ItemsSource = ldb.FullList; //List.ItemsSource = ldb.FullList; // List.Items = //LocomotivesServices ls = ServiceLocator.Instance.GetService<LocomotivesServices>(); //ls.Init(); BuildSite(); Button_Click_2(null, null); Close(); }