Ejemplo n.º 1
0
        public static WikiDomains DefaultDomains()
        {
            WikiDomains domains = new WikiDomains();
            domains.Domains.Add(new WikiDomain("wikipedia"));
            domains.Domains.Add(new WikiDomain("wiktionary"));

            return domains;
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
        public WikiDomainsForm()
        {
            InitializeComponent();

            Domains = new WikiDomains();
        }