Exemplo n.º 1
0
 internal static NonJapaneseLocaleWatDo show()
 {
     NonJapaneseLocaleWatDo result = NonJapaneseLocaleWatDo.ABORT;
     MainForm.instance.Invoke(new Action(() => {
         NonJapaneseLocaleForm form = new NonJapaneseLocaleForm();
         if (form.ShowDialog() == DialogResult.OK) {
             result = form.getSelectedOption();
             Settings.app.nonJpLocale = result;
             Settings.app.nonJpLocaleAsk = form.isAskAgain();
         } else {
             result = NonJapaneseLocaleWatDo.ABORT;
         }
     }));
     return result;
 }
Exemplo n.º 2
0
        internal static NonJapaneseLocaleWatDo show()
        {
            NonJapaneseLocaleWatDo result = NonJapaneseLocaleWatDo.ABORT;

            MainForm.instance.Invoke(new Action(() => {
                NonJapaneseLocaleForm form = new NonJapaneseLocaleForm();
                if (form.ShowDialog() == DialogResult.OK)
                {
                    result = form.getSelectedOption();
                    Settings.app.nonJpLocale    = result;
                    Settings.app.nonJpLocaleAsk = form.isAskAgain();
                }
                else
                {
                    result = NonJapaneseLocaleWatDo.ABORT;
                }
            }));
            return(result);
        }