MaxCustomControls::AdvancedSearch::ConditionHelper Class Reference


Detailed Description

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

List of all members.

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]

Constructor & Destructor Documentation

MaxCustomControls::AdvancedSearch::ConditionHelper::ConditionHelper ( DataFacade  dataFacade,
ComparisonControlManager  comparisonManager 
) [inline]

Constructor.

Parameters:
dataFacade
comparisonManager

Member Function Documentation

PropertyDescriptor MaxCustomControls::AdvancedSearch::ConditionHelper::GetPropertyDescriptorByDisplayName ( string  propertyName ) [inline]

Gets a PropertyDescriptor by display name.

Parameters:
propertyName
Returns:
A PropertyDescriptor from the property descriptor collection or null if the property name does not correspond to a descriptor
ComparisonControlPrototypeBase MaxCustomControls::AdvancedSearch::ConditionHelper::GetComparisonControlByOperatorText ( PropertyDescriptor  currentProperty,
string  operatorText 
) [inline]

Gets a ComparisonControl by operator text.

Parameters:
currentProperty
operatorText
Returns:
A ComparisonControl that corresponds to the operator text or null if no comparison control is found
String [] MaxCustomControls::AdvancedSearch::ConditionHelper::GetPropertyDisplayNamesList ( ) [inline]

Gets the Property display names list which is used to populate the property combobox.

Returns:
A list of objects representing the property display names
ComparisonControlPrototypeBase MaxCustomControls::AdvancedSearch::ConditionHelper::GetFirstComparison ( Type  propertyType ) [inline]

Gets the first ComparisonControl from the availableComparisons list.

Parameters:
propertyType
Returns:
The first ComparisonControlPrototypeBase in the list
ReadOnlyCollection<ComparisonControlPrototypeBase> MaxCustomControls::AdvancedSearch::ConditionHelper::GetAvailableComparisons ( Condition  condition ) [inline]

Get the available comparisons for the current condition, as a ReadOnly Collection.

Parameters:
condition
Returns:
A ReadOnlyCollection containing the available comparison controls

Property Documentation

DataFacade MaxCustomControls::AdvancedSearch::ConditionHelper::DataFacade [get]
ComparisonControlManager MaxCustomControls::AdvancedSearch::ConditionHelper::ComparisonControlManager [get]
List<PropertyDescriptor> MaxCustomControls::AdvancedSearch::ConditionHelper::PropertyCollection [get]

MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper
MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper MaxCustomControls::AdvancedSearch::ConditionHelper