ComboBoxEnumBinderTModel, TValue Constructor |
Creates a new object.
Namespace: VirtualRadar.WinForms.PortableBindingAssembly: VirtualRadar.WinForms (in VirtualRadar.WinForms.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public ComboBoxEnumBinder(
TModel model,
ComboBox control,
Expression<Func<TModel, TValue>> getModelValue,
Action<TModel, TValue> setModelValue,
Func<TValue, string> getEnumDescription
)
Public Sub New (
model As TModel,
control As ComboBox,
getModelValue As Expression(Of Func(Of TModel, TValue)),
setModelValue As Action(Of TModel, TValue),
getEnumDescription As Func(Of TValue, String)
)
public:
ComboBoxEnumBinder(
TModel model,
ComboBox^ control,
Expression<Func<TModel, TValue>^>^ getModelValue,
Action<TModel, TValue>^ setModelValue,
Func<TValue, String^>^ getEnumDescription
)
new :
model : 'TModel *
control : ComboBox *
getModelValue : Expression<Func<'TModel, 'TValue>> *
setModelValue : Action<'TModel, 'TValue> *
getEnumDescription : Func<'TValue, string> -> ComboBoxEnumBinder
Parameters
- model
- Type: TModel
- control
- Type: System.Windows.FormsComboBox
- getModelValue
- Type: System.Linq.ExpressionsExpressionFuncTModel, TValue
- setModelValue
- Type: SystemActionTModel, TValue
- getEnumDescription
- Type: SystemFuncTValue, String
See Also