Пример #1
0
        private void addManagedCulture()
        {
            string _cultureName = cboAvailablesCultures.SelectedValue.ToString();

            if (MessageBox.Show(String.Concat("Do you want to add the new Managed Culture (", _cultureName, ") ?"), Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }

            m_localizer.AddManagedCulture(_cultureName);

            if (!String.IsNullOrEmpty(m_localizer.ErrorString))
            {
                MessageBox.Show(m_localizer.ErrorString);
                return;
            }

            loadManagedCultures();
            setDataSourceDictionaries();

            //Samples routines
            setDataSourceSampleLanguages();
        }