Show / Hide Table of Contents

Class CultureManager

Manages metadata languages used in the Colectica user interface.

Inheritance
System.Object
CultureManager
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class CultureManager : object

Properties

Cultures

Gets the cultures configured for display in the user interface.

Declaration
public ObservableCollection<CultureInfo> Cultures { get; }
Property Value
Type Description
ObservableCollection<CultureInfo>

The cultures.

Instance

Provides access to the singleton object.

Declaration
public static CultureManager Instance { get; }
Property Value
Type Description
CultureManager

SortOrder

Gets the cultures configured for display in the user interface, in sorted order.

Declaration
public List<string> SortOrder { get; }
Property Value
Type Description
List<System.String>

The sort order.

Methods

GetCultureString()

Gets a string serialization of the list of cultures that are configured to be displayed in the user interface.

Declaration
public string GetCultureString()
Returns
Type Description
System.String

LoadFromString(String)

Loads cultures to be displayed in the user interface from a string, which may have been used to store the configured cultures between application settings.

Declaration
public void LoadFromString(string cultureString)
Parameters
Type Name Description
System.String cultureString

The culture string.

SetDefaultCulture(String)

Sets the default culture.

Declaration
public void SetDefaultCulture(string defaultCultureName)
Parameters
Type Name Description
System.String defaultCultureName

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica