public static WikiDomains DefaultDomains() { WikiDomains domains = new WikiDomains(); domains.Domains.Add(new WikiDomain("wikipedia")); domains.Domains.Add(new WikiDomain("wiktionary")); return domains; }
public ImportForm(WikiDomains domains, LanguageCodes languages) { InitializeComponent(); domains_ = domains; languages_ = languages; foreach (WikiDomain wikiDomain in domains.Domains) { cboDomains_.Items.Add(wikiDomain.Name); } cboDomains_.SelectedIndex = -1; foreach (WikiLanguage wikiLanguage in languages_.Languages) { cboLanguages_.Items.Add(wikiLanguage.LocalName); } //TODO: Automatically select the default or current language. cboLanguages_.SelectedIndex = (cboLanguages_.Items.Count > 0) ? 0 : -1; UpdateDumpInfo(); }
public WikiDomainsForm() { InitializeComponent(); Domains = new WikiDomains(); }