Открытые статические члены | Свойства | События

Класс TSLab.Utils.RM

Полный список членов класса

Открытые статические члены

static void LoadResourceManager (CultureInfo ci)
 Change culture.
static void SetResourceManager (ResourceManager rm)
static void UpdateResources ()
 Initiate resource updating.
static string GetStringFormat (string id, params object[] args)
static string GetStringFormat (IFormatProvider provider, string id, params object[] args)
static string GetString (object owner, string id)
 Get localized string for object.
static string GetStringWithPrefix (string prefix, string id)
 Get localized string for object with prefix, i.e. "prefix.id".
static string GetStringWithPostfix (object owner, string postfix)
 Get localized string for object with postfix, i.e. "name.postfix".
static string GetStringWithPostfix (string id, string postfix)
static string GetExceptionMessage (Exception ex)
 Get localized exception message.
static string GetDeepExceptionMessage (Exception ex)
 Get localized exception message.
static string GetExceptionMessage (string exMessage)
 Get localized exception message.
static string GetExceptionMessage (string exMessage, params object[] args)
 Get localized exception message with arguments.
static string GetString (string id)
 Get localized string by id.
static string GetStringOrId (string id)
 Get localized string by id.
static ResourceSet GetSet ()
static string GetLotString (double quantity)
static string GetDaysString (int numdays)

Свойства

static CultureInfo CurrentCulture [get]
 Get current Culture.

События

static ResourceManagerChanged ResourceManagerChanged
 Culture changed event.

Методы

static string TSLab.Utils.RM.GetDeepExceptionMessage ( Exception  ex  )  [static]

Get localized exception message.

Аргументы:
ex exception instance
Возвращает:
localized message
static string TSLab.Utils.RM.GetExceptionMessage ( Exception  ex  )  [static]

Get localized exception message.

Аргументы:
ex exception instance
Возвращает:
localized message
static string TSLab.Utils.RM.GetExceptionMessage ( string  exMessage  )  [static]

Get localized exception message.

Аргументы:
exMessage exception message
Возвращает:
localized message
static string TSLab.Utils.RM.GetExceptionMessage ( string  exMessage,
params object[]  args 
) [static]

Get localized exception message with arguments.

Аргументы:
exMessage exception message
args arguments
Возвращает:
localized message
static string TSLab.Utils.RM.GetString ( object  owner,
string  id 
) [static]

Get localized string for object.

Аргументы:
owner object
id string id
Возвращает:
localized string
static string TSLab.Utils.RM.GetString ( string  id  )  [static]

Get localized string by id.

Аргументы:
id string id
Возвращает:
localized string or null if string not found
static string TSLab.Utils.RM.GetStringOrId ( string  id  )  [static]

Get localized string by id.

Аргументы:
id string id
Возвращает:
localized string or id if string not found
static string TSLab.Utils.RM.GetStringWithPostfix ( object  owner,
string  postfix 
) [static]

Get localized string for object with postfix, i.e. "name.postfix".

Аргументы:
owner object
postfix postfix string
Возвращает:
localized string
static string TSLab.Utils.RM.GetStringWithPrefix ( string  prefix,
string  id 
) [static]

Get localized string for object with prefix, i.e. "prefix.id".

Аргументы:
prefix prefix string
id string id
Возвращает:
localized string
static void TSLab.Utils.RM.LoadResourceManager ( CultureInfo  ci  )  [static]

Change culture.

Аргументы:
ci new Culture
static void TSLab.Utils.RM.UpdateResources (  )  [static]

Initiate resource updating.


Полный список свойств

CultureInfo TSLab.Utils.RM.CurrentCulture [static, get]

Get current Culture.


Cобытия

ResourceManagerChanged TSLab.Utils.RM.ResourceManagerChanged [static]

Culture changed event.