예제 #1
0
        public static WikiDomains DefaultDomains()
        {
            WikiDomains domains = new WikiDomains();
            domains.Domains.Add(new WikiDomain("wikipedia"));
            domains.Domains.Add(new WikiDomain("wiktionary"));

            return domains;
        }
예제 #2
0
        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();
        }
예제 #3
0
        public WikiDomainsForm()
        {
            InitializeComponent();

            Domains = new WikiDomains();
        }