Пример #1
0
        /// <inheritdoc/>
        protected override void ChangeLanguage(string language)
        {
            // Set language and propagate change
            Settings.Current.General.Language = language;
            Program.UpdateLocale();

            // Refresh tab to update language-related stuff
            CurrentTab?.Open(this);

            // Inform user he/she needs to close the Main Form to refresh all locales
            if (Msg.YesNo(this, Resources.CloseModForLangChange, MsgSeverity.Info, Resources.CloseModForLangChangeYes, Resources.CloseModForLangChangeNo))
            {
                Restart();
            }
        }