Esempio n. 1
0
        /// <summary>
        /// Opens a language
        /// </summary>
        private void menuItemOpen_Click(object sender, System.EventArgs e)
        {
            if (Settings.Instance.LanguageFolder == "" && !ShowFolderBrowser())
            {
                return;
            }

            DialogResult result = ShouldSaveLanguageFile();

            if (result == DialogResult.Yes)
            {
                SaveLanguageFile();
            }
            else if (result == DialogResult.Cancel)
            {
                return;
            }

            ChooseLanguageForm form = new ChooseLanguageForm();

            if (form.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Initialize();
        }
Esempio n. 2
0
        /// <summary>
        /// Opens a language
        /// </summary>
        private void menuItemOpen_Click(object sender, System.EventArgs e)
        {
            if (Settings.Instance.LanguageFolder=="" && !ShowFolderBrowser())
                return;

            DialogResult result=ShouldSaveLanguageFile();
            if (result==DialogResult.Yes)
                SaveLanguageFile();
            else if (result==DialogResult.Cancel)
                return;

            ChooseLanguageForm form=new ChooseLanguageForm();
            if (form.ShowDialog()==DialogResult.Cancel)
                return;

            Initialize();
        }