InitializeTextClass() public static method

Initializes a static class that contains static LocalText objects. These objects actually contains localized texts in default language, but this method adds them to local text dictionary and replaces their values with text keys generated from concatting a prefix and the variable name.
public static InitializeTextClass ( Type type, string prefix ) : void
type System.Type Type to initialize that contains texts
prefix string Prefix to add text keys (e.g. "Db.SomeCategory.")
return void
Esempio n. 1
0
 static SelectEditor()
 {
     LocalText.InitializeTextClass(typeof(SelectEditor), "Controls.SelectEditor.");
 }
 static EntityDialog()
 {
     LocalText.InitializeTextClass(typeof(EntityDialog), "Controls.EntityDialog.");
 }
Esempio n. 3
0
 static Pager()
 {
     LocalText.InitializeTextClass(typeof(Pager), "Controls.Pager.");
 }
Esempio n. 4
0
 static Texts()
 {
     LocalText.InitializeTextClass(typeof(Dialogs), "Dialogs.");
 }
 static EntityGrid()
 {
     LocalText.InitializeTextClass(typeof(EntityGrid), "Controls.EntityGrid.");
 }
 static PropertyGrid()
 {
     LocalText.InitializeTextClass(typeof(PropertyGrid), "Controls.PropertyGrid.");
 }
 static QuickSearch()
 {
     LocalText.InitializeTextClass(typeof(QuickSearch), "Controls.QuickSearch.");
 }