Provides helper functions that are used to obtain Condition fields (e.g PropertyDescriptor by Property display name)
Class was constructed to encapsulate different helper functions that are used to obtain different Condition fields for the AdvancedFilter dialog
Public Member Functions |
|
ConditionHelper (DataFacade dataFacade, ComparisonControlManager comparisonManager) | |
Constructor. |
|
PropertyDescriptor | GetPropertyDescriptorByDisplayName (string propertyName) |
Gets a PropertyDescriptor by display name.
|
|
ComparisonControlPrototypeBase | GetComparisonControlByOperatorText (PropertyDescriptor currentProperty, string operatorText) |
Gets a ComparisonControl by operator text.
|
|
String[] | GetPropertyDisplayNamesList () |
Gets the Property display names list which
is used to populate the property combobox. |
|
ComparisonControlPrototypeBase | GetFirstComparison (Type propertyType) |
Gets the first ComparisonControl from the
availableComparisons list. |
|
ReadOnlyCollection < ComparisonControlPrototypeBase > |
GetAvailableComparisons (Condition condition) |
Get the available comparisons for the
current condition, as a ReadOnly Collection. |
|
Properties |
|
DataFacade |
DataFacade [get] |
ComparisonControlManager |
ComparisonControlManager [get] |
List< PropertyDescriptor > |
PropertyCollection [get] |
MaxCustomControls::AdvancedSearch::ConditionHelper::ConditionHelper | ( | DataFacade | dataFacade, |
ComparisonControlManager | comparisonManager | ||
) | [inline] |
Constructor.
dataFacade | |
comparisonManager |
PropertyDescriptor MaxCustomControls::AdvancedSearch::ConditionHelper::GetPropertyDescriptorByDisplayName | ( | string | propertyName | ) | [inline] |
Gets a PropertyDescriptor by display name.
propertyName |
ComparisonControlPrototypeBase MaxCustomControls::AdvancedSearch::ConditionHelper::GetComparisonControlByOperatorText | ( | PropertyDescriptor | currentProperty, |
string | operatorText | ||
) | [inline] |
Gets a ComparisonControl by operator text.
currentProperty | |
operatorText |
String [] MaxCustomControls::AdvancedSearch::ConditionHelper::GetPropertyDisplayNamesList | ( | ) | [inline] |
Gets the Property display names list which is used to populate the property combobox.
ComparisonControlPrototypeBase MaxCustomControls::AdvancedSearch::ConditionHelper::GetFirstComparison | ( | Type | propertyType | ) | [inline] |
Gets the first ComparisonControl from the availableComparisons list.
propertyType |
ReadOnlyCollection<ComparisonControlPrototypeBase> MaxCustomControls::AdvancedSearch::ConditionHelper::GetAvailableComparisons | ( | Condition | condition | ) | [inline] |
Get the available comparisons for the current condition, as a ReadOnly Collection.
condition |
DataFacade
MaxCustomControls::AdvancedSearch::ConditionHelper::DataFacade
[get] |
ComparisonControlManager
MaxCustomControls::AdvancedSearch::ConditionHelper::ComparisonControlManager
[get] |
List<PropertyDescriptor>
MaxCustomControls::AdvancedSearch::ConditionHelper::PropertyCollection
[get] |