Class SettingsBinder
Static helper class for databinding settings to control properties.
Inheritance
Inherited Members
Namespace: Sdl.Desktop.IntegrationApi
Assembly: Sdl.Desktop.IntegrationApi.dll
Syntax
public static class SettingsBinderMethods
DataBindSetting<TSettingValue>(IBindableComponent, String, ISettingsGroup, String)
Databinds a setting to a control property, setting the control font to bold when the settings is not inherited.
Declaration
public static Binding DataBindSetting<TSettingValue>(IBindableComponent control, string propertyName, ISettingsGroup settingsGroup, string settingId)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.IBindableComponent | control | The control to which to bind the setting. | 
| System.String | propertyName | The property of the control to which to bind the setting. | 
| ISettingsGroup | settingsGroup | The settings group that owns the setting. | 
| System.String | settingId | The id of the setting. | 
Returns
| Type | Description | 
|---|---|
| System.Windows.Forms.Binding | 
Type Parameters
| Name | Description | 
|---|---|
| TSettingValue | The value type of the setting. | 
DataBindSetting<TSettingValue>(RadioButton[], TSettingValue[], ISettingsGroup, String)
Databinds a setting to a radiobutton with a specific datasource update mode, setting the control font to bold when the settings is not inherited.
Declaration
public static Binding DataBindSetting<TSettingValue>(RadioButton[] radioButtons, TSettingValue[] values, ISettingsGroup settingsGroup, string settingId)
    where TSettingValue : IComparableParameters
| Type | Name | Description | 
|---|---|---|
| System.Windows.Forms.RadioButton[] | radioButtons | The radiobutton to which to bind the setting. | 
| TSettingValue[] | values | The values to which radio button should be bind. | 
| ISettingsGroup | settingsGroup | The settings group that owns the setting. | 
| System.String | settingId | The id of the setting. | 
Returns
| Type | Description | 
|---|---|
| System.Windows.Forms.Binding | The binding between the property value of an object and property value of a control. | 
Type Parameters
| Name | Description | 
|---|---|
| TSettingValue | The value type of the setting. |