Class DialogDefaultButtonToBooleanConverter
Converter to convert DialogDefaultButton to a boolean.
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class DialogDefaultButtonToBooleanConverter : IValueConverter
Methods
View SourceConvert(object, Type, object, CultureInfo)
Converts the DialogDefaultButton to its appropriate boolean value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The DialogDefaultButton. |
| Type | targetType | |
| object | parameter | An int value of the button number (1,2 or 3). |
| CultureInfo | culture |
Returns
| Type | Description |
|---|---|
| object | The converted boolean value. |
ConvertBack(object, Type, object, CultureInfo)
Convert back
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| Type | targetType | |
| object | parameter | |
| CultureInfo | culture |
Returns
| Type | Description |
|---|---|
| object |