Click or drag to resize
weroSoft AG, Software
SearchViewModelBase Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Represents the base class of a view model that supports searching.
Inheritance Hierarchy

Namespace:  WeroSoft.Triton.Desktop
Assembly:  WeroSoft.Triton.Desktop.Library (in WeroSoft.Triton.Desktop.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public abstract class SearchViewModelBase : CultureSupportingViewModel, 
	ISearchViewModelBase, IProgressSignalization
Remarks
When a search is started it verifies that the amount of data to load does not exceeds the defined limit. In this case the used is asked to confirm start searching. The class supports two types of client: IReconnectingClient and IQueryableClient, therefore the methods which have the client as arguments are defined virtually twice. The developer shall implement the methods corresponding to the required client.

The SearchViewModelBase type exposes the following members.

Constructors
  NameDescription
Public methodSearchViewModelBase
Initializes an instance of the type SearchViewModelBase.
Top
Properties
  NameDescription
Public propertyIsModified
Gets or sets the flag indicating whether the object has been modified or not.
(Inherited from ViewModelBase.)
Public propertyIsReadOnly
Gets or sets the flag indicating whether the object is read-only.
(Inherited from ViewModelBase.)
Public propertyIsSearching
Gets whether the search is running or not.
Protected propertyItemsAmount
Gets the total number of items to be loaded.
Protected propertyModelCascadingCollectionChangedEventObjects
Gets a list of cascaded events for collection changed.
(Inherited from ViewModelBase.)
Protected propertyModelCascadingEventObjects
Gets a list of cascaded event objects.
(Inherited from ViewModelBase.)
Public propertyProgressText
Gets or sets the progress information of the searching.
Public propertySearchProvider
Gets or sets the search provider.
Public propertySearchStatus
Gets the status of the search.
Public propertyUseDialogMessageArea
Gets or sets whether messages shall be shown in the message area of the dialog or of the workspace
Top
Methods
  NameDescription
Protected methodApplySearchTimeDefinitionToQuery
Create a query for the named property corresponding to the search criterion.
Public methodCancel
Cancel the search.
Public methodClear
Clears the results of the search.
Public methodContinue
Not supported.
Public methodConvertToQuery
Convert the search definition into a query.
Public methodCultureChanged
Called if the culture has been changed.
(Inherited from CultureSupportingViewModel.)
Public methodDispose
Disposes the object.
(Inherited from CultureSupportingViewModel.)
Public methodDispose(Boolean)
Called during disposing the generator.
(Overrides CultureSupportingViewModelDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFetchPage(ISearchDefinition, IReconnectingClient)
Fetch asynchronously one page of data using the query defined in the client context.
Public methodFetchPage(ISearchDefinition, IQueryableClient)
Fetch asynchronously one page of data using the query defined in the client context.
Protected methodFinalize
Destructor of the class.
(Overrides ObjectFinalize.)
Public methodGetClient
Gets the client of the search.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetIQueryableClient
Gets the client of the search.
Public methodGetItemsAmount(ISearchDefinition, IReconnectingClient)
Gets the number of items that will be returned by the search with the given definition.
Public methodGetItemsAmount(ISearchDefinition, IQueryableClient)
Gets the number of items that will be returned by the search with the given definition.
Public methodGetNumberOfLoadedItems
Gets the total number of items delivered by the search.
Protected methodGetPropertyValueT
Gets the value of a particular property.
(Inherited from ViewModelBase.)
Protected methodGetResourceValueT
Gets the value of a particular property.
(Inherited from CultureSupportingViewModel.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeSearch
Initialize the search provider.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyAllRegisteredProperties
Notify all registered properties in the property collection.
(Inherited from CultureSupportingViewModel.)
Protected methodOnPropertyChanged
Raises the event PropertyChanged.
(Inherited from NotifyPropertyChanged.)
Public methodPause
Not supported.
Protected methodSetPropertyValue
Sets the value of a particular property.
(Inherited from ViewModelBase.)
Public methodStartSearch
Starts a new search.
Public methodStopSearch
Stops the current search.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Raised on changing a property.
(Inherited from NotifyPropertyChanged.)
Top
Fields
  NameDescription
Protected fieldHasNoModifyingAttribute
Gets a collection for handling modification flags.
(Inherited from ViewModelBase.)
Protected fieldSearchName
The name of the search, shown left of th progress.
Protected fieldShowProgress
Defines whether the progress shall be shown or not.
Top
Extension Methods
  NameDescription
Public Extension MethodClone(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodCloneT(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodConvert (Defined by DataConverterExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String)Overloaded.
Creates a data entry into a string builder according to the giving parameters.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry for a data element.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry into a string builder.
(Defined by TraceExtensions.)
Public Extension MethodDynamicCast
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.)
Public Extension MethodExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.)
Public Extension MethodGetFieldValue(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetFieldValueT(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValue(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodInject(Type, Object)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInject(Type, Object, Boolean)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInjectField
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Type, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInvoke(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodInvokeTResult(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodSetFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetPropertyValue
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodTryInjectProperty
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.)
Top
See Also
Inheritance Hierarchy
SystemObject
  WeroSoft.WindowsNotifyPropertyChanged
    WeroSoft.WindowsViewModelBase
      WeroSoft.WindowsCultureSupportingViewModel
        WeroSoft.Triton.DesktopSearchViewModelBase
          WeroSoft.Client.PickerAccessPointSearchViewModel
          WeroSoft.Client.PickerAccountGroupSearchViewModel
          WeroSoft.Client.PickerAccountSearchViewModel
          WeroSoft.Client.PickerCitySearchViewModel
          WeroSoft.Client.PickerContactSearchViewModel
          WeroSoft.Client.PickerLocationSearchViewModel
          WeroSoft.Client.PickerOrganizationSearchViewModel
          WeroSoft.Client.PickerPersonSearchViewModel
          WeroSoft.Client.PickerPostalAddressSearchViewModel
          WeroSoft.Workflow.Desktop.ControlsWorkflowSelectorViewModel