C# 클래스 System.Globalization.FormLanguageSwitchSingleton

파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
m_instance FormLanguageSwitchSingleton

공개 메소드들

메소드 설명
ChangeCurrentThreadUICulture ( System cultureInfo ) : void

Changes the current culture used by the Resource Manager to look up culture-specific resources at run time.

ChangeLanguage ( System form ) : void

Changes the language of the Form object provided to the currently selected language.

ChangeLanguage ( System form, System cultureInfo ) : void

Changes the language of the Form object provided and all its MDI children (in the case of MDI UI) to the currently selected language.

보호된 메소드들

메소드 설명
FormLanguageSwitchSingleton ( ) : System

Hidden constructor called during static member m_instance initialization.

ReloadControlCommonProperties ( System control, System resources ) : void

Reloads properties common to all controls (except the Text property).

ReloadControlSpecificProperties ( System control, System resources ) : void

Reloads properties specific to some controls.

ReloadListItems ( System control, System resources ) : void

Reloads items in following controls: ComboBox, ListBox, DomainUpDown. Method is made virtual so it can be overriden in derived class to redefine types.

ReloadTextForSelectedControls ( System control, System resources ) : void

Changes Text properties associated with following controls: AxHost, ButtonBase, GroupBox, Label, ScrollableControl, StatusBar, TabControl, ToolBar. Method is made virtual so it can be overriden in derived class to redefine types.

ScanNonControls ( System containerControl, System resources ) : void

Scans controls that are not contained by Controls collection, like MenuItems, StatusBarPanels and ColumnHeaders.

비공개 메소드들

메소드 설명
ChangeFormLanguage ( System form ) : void

Changes the language of the form.

GetSafeValue ( System resources, string name, object currentValue ) : object

Gets resource value. If resource for new culture does not exists, leaves the current.

GetToolTip ( System control ) : ToolTip

Gets the ToolTip member of the control (Form or UserControl).

RecurControls ( System parent, System resources, System toolTip ) : void

Recurs Controls members of the control to change corresponding texts.

RecurUserControl ( System userControl ) : void

Recurs UserControl to change.

ReloadComboBoxItems ( System comboBox, System resources ) : void

Reloads items in the ComboBox. If items are not sorted, selection is kept.

ReloadFormProperties ( System form, System resources ) : void

Reloads resources specific to the Form type.

ReloadItems ( string controlName, IList list, int itemsNumber, System resources ) : void

Clears all items in the IList and reloads the list with items according to language settings.

ReloadListBoxItems ( System listBox, System resources ) : void

Reloads items in the ListBox. If items are not sorted, selections are kept.

ReloadScrollableControlProperties ( System control, System resources ) : void

Reloads resources specific to the ScrollableControl type.

ReloadTreeViewNodes ( System treeView, System resources ) : void

Reloads content of a TreeView.

ReloadUpDownItems ( System domainUpDown, System resources ) : void

Reloads items in the DomainUpDown control. If items are not sorted, selection is kept.

SetProperty ( System control, string propertyName, System resources ) : void

Reloads resources for a property.

메소드 상세

ChangeCurrentThreadUICulture() 공개 메소드

Changes the current culture used by the Resource Manager to look up culture-specific resources at run time.
public ChangeCurrentThreadUICulture ( System cultureInfo ) : void
cultureInfo System
리턴 void

ChangeLanguage() 공개 메소드

Changes the language of the Form object provided to the currently selected language.
public ChangeLanguage ( System form ) : void
form System /// Form object to apply changes to. ///
리턴 void

ChangeLanguage() 공개 메소드

Changes the language of the Form object provided and all its MDI children (in the case of MDI UI) to the currently selected language.
public ChangeLanguage ( System form, System cultureInfo ) : void
form System /// Form object to apply changes to. ///
cultureInfo System /// CultureInfo to which language has to be changed. ///
리턴 void

FormLanguageSwitchSingleton() 보호된 메소드

Hidden constructor called during static member m_instance initialization.
protected FormLanguageSwitchSingleton ( ) : System
리턴 System

ReloadControlCommonProperties() 보호된 메소드

Reloads properties common to all controls (except the Text property).
protected ReloadControlCommonProperties ( System control, System resources ) : void
control System /// Control object for which resources should be reloaded. ///
resources System /// ResourceManager object. ///
리턴 void

ReloadControlSpecificProperties() 보호된 메소드

Reloads properties specific to some controls.
protected ReloadControlSpecificProperties ( System control, System resources ) : void
control System /// Control object for which resources should be reloaded. ///
resources System /// ResourceManager object. ///
리턴 void

ReloadListItems() 보호된 메소드

Reloads items in following controls: ComboBox, ListBox, DomainUpDown. Method is made virtual so it can be overriden in derived class to redefine types.
protected ReloadListItems ( System control, System resources ) : void
control System
resources System /// ResourceManager object. ///
리턴 void

ReloadTextForSelectedControls() 보호된 메소드

Changes Text properties associated with following controls: AxHost, ButtonBase, GroupBox, Label, ScrollableControl, StatusBar, TabControl, ToolBar. Method is made virtual so it can be overriden in derived class to redefine types.
protected ReloadTextForSelectedControls ( System control, System resources ) : void
control System
resources System /// ResourceManager object. ///
리턴 void

ScanNonControls() 보호된 메소드

Scans controls that are not contained by Controls collection, like MenuItems, StatusBarPanels and ColumnHeaders.
protected ScanNonControls ( System containerControl, System resources ) : void
containerControl System
resources System /// ResourceManager used to get localized resources. ///
리턴 void

프로퍼티 상세

m_instance 보호되어 있는 정적으로 프로퍼티

Static read-only instance.
protected static FormLanguageSwitchSingleton,System.Globalization m_instance
리턴 FormLanguageSwitchSingleton