private void AddLoco_Click(object sender, RoutedEventArgs e) { string url = NewUrl.Text; LocomotivesServices ls = ServiceLocator.Instance.GetService <LocomotivesServices>(); var loco = ls.CreateDB(url); }
public void UpdateFromSite() { LocomotivesServices ls = ServiceLocator.Instance.GetService <LocomotivesServices>(); HtmlTableExtract table = ls.GetTable(WebSite, string.Empty); HtmlTableExtractLoco latestVersion = new HtmlTableExtractLoco(table); if (Operators == MISSING) { Operators = latestVersion.Operators; SetDirty(); } if (Class == MISSING) { Class = latestVersion.Class; SetDirty(); } }