I saw in another topic that the following line compiles (and I tried it myself too):
Code: Select all
Globals.MultipleLanguages.SetLanguage("Default");
Code: Select all
Globals.MultipleLanguages.SetLanguage("Default");
Code: Select all
using Neo.ApplicationFramework.Tools.MessageLibrary;
public string GetTextFromLibrary(int Value)
{
for (int i = 0; i < Globals.TextLibrary.Group1.Messages.Count; i++)
{
if ((Globals.TextLibrary.Group1.Messages[i].StartValue <= Value) &&
(Globals.TextLibrary.Group1.Messages[i].EndValue >= Value))
{
return Globals.TextLibrary.Group1.Messages[i].Message;
}
}
return "";
}
Code: Select all
Neo.ApplicationFramework.Tools.MultiLanguage.MultiLanguageResourceManager resources = new Neo.ApplicationFramework.Tools.MultiLanguage.MultiLanguageResourceManager(typeof(Screen1));
button.Text = resources.GetText(ID, "default");