Class LocalizableValue
Base class for the localized value.
Implements
Inherited Members
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public abstract class LocalizableValue : ICloneable
Constructors
LocalizableValue()
Initializes a new instance of the LocalizableValue class.
Declaration
protected LocalizableValue()
LocalizableValue(String, String)
Initializes a new instance of the LocalizableValue class using the specified resource manager and specified resource element.
Declaration
protected LocalizableValue(string resourceManagerName, string resourceItemName)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceManagerName | Resource manager name. |
System.String | resourceItemName | Name of the resource item. |
LocalizableValue(IResourceStorage, String, String)
Initializes a new instance of the LocalizableValue class using the specified resource storage, resource manager and resource item.
Declaration
protected LocalizableValue(IResourceStorage storage, string resourceManagerName, string resourceItemName)
Parameters
Type | Name | Description |
---|---|---|
IResourceStorage | storage | Resource repository - a class that implements the IResourceStorage interface. |
System.String | resourceManagerName | Resource manager name. |
System.String | resourceItemName | Name of the resource item. |
LocalizableValue(LocalizableValue)
Initializes a new instance of the LocalizableValue class using the specified localized value.
Declaration
protected LocalizableValue(LocalizableValue source)
Parameters
Type | Name | Description |
---|---|---|
LocalizableValue | source | Localized value. |
Properties
ResourceItemName
Gets and sets resource item name for the current localized value.
Declaration
public string ResourceItemName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ResourceManager
Gets resource manager for the current localized value.
Declaration
public IResourceManager ResourceManager { get; }
Property Value
Type | Description |
---|---|
IResourceManager |
ResourceManagerName
Gets and sets resource manager name for the current localized value.
Declaration
public string ResourceManagerName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Storage
Gets and sets resource storage for the current localized value.
Declaration
public IResourceStorage Storage { get; set; }
Property Value
Type | Description |
---|---|
IResourceStorage |
Methods
Clone()
Declaration
public abstract object Clone()
Returns
Type | Description |
---|---|
System.Object |
HasCultureValue(CultureInfo)
Declaration
public abstract bool HasCultureValue(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.Boolean |
LoadCultureValues()
Declaration
public abstract void LoadCultureValues()
ResetCultureValues()
Resets values of the language standard for the current localized value.
Declaration
protected abstract void ResetCultureValues()
SetResourceInfo(String, String, Boolean)
Sets information about resource manager and resource element for the current localized value.
Declaration
public void SetResourceInfo(string resourceManagerName, string resourceItemName, bool resetValue = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceManagerName | Resource manager name. |
System.String | resourceItemName | Name of the resource item. |
System.Boolean | resetValue | Determines the need to reset the culture value. |
Remarks
Overloaded method.
SetResourceInfo(IResourceStorage, String, String, Boolean)
Sets information about resource storage, resource manager and resource element for the current localized value.
Declaration
public void SetResourceInfo(IResourceStorage storage, string resourceManagerName, string resourceItemName, bool resetValue = true)
Parameters
Type | Name | Description |
---|---|---|
IResourceStorage | storage | A resource storage. |
System.String | resourceManagerName | Resource manager name. |
System.String | resourceItemName | Resource item. |
System.Boolean | resetValue | Determines the need to reset the culture value. |