Exemplo n.º 1
0
 public static void ChangeLanguageTo(string languageName, Form form, params ToolTip[] toolTips) {
     if (string.Compare(LangBase.CurrentLanguageName, languageName, true) == 0)
         return;
     if (!LangBase.IsDefault) {
         using (GuiObjectsCollection guiObjectsCollection = new GuiObjectsCollection(false, form, toolTips)) {
             guiObjectsCollection.RestoreDefaultLanguage();
         }
     }
     using (GuiObjectsCollection guiObjectsCollection = new GuiObjectsCollection(false, form, toolTips)) {
         LangBase.Activate(languageName);
         guiObjectsCollection.ApplyActualLanguage();
     }
     PredefinedRegexPatternsList.ReActivate();
     RegexPatternsTipsList.ReActivate();
     PreferencesBase.Res.LastLanguageName = languageName;
 }
Exemplo n.º 2
0
 public static void ApplyActualLanguageFor(Form form, params ToolTip[] toolTips) {
     using (GuiObjectsCollection guiObjectsCollection = new GuiObjectsCollection(form, toolTips))
         guiObjectsCollection.ApplyActualLanguage();
 }