Click or drag to resize
MasterListToSubsetBinderTSubsetModel, TMasterModel, TListModel, TIdentifier Class
A binder that binds between a master list and a subset of the master list's rows. Rows are distinguished by an identifier.
Inheritance Hierarchy
SystemObject
  VirtualRadar.WinForms.PortableBindingControlBinder
    VirtualRadar.WinForms.PortableBindingMasterListToListBinderTMasterModel, TListModel
      VirtualRadar.WinForms.PortableBindingMasterListToSubsetBinderTSubsetModel, TMasterModel, TListModel, TIdentifier

Namespace: VirtualRadar.WinForms.PortableBinding
Assembly: VirtualRadar.WinForms (in VirtualRadar.WinForms.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class MasterListToSubsetBinder<TSubsetModel, TMasterModel, TListModel, TIdentifier> : MasterListToListBinder<TMasterModel, TListModel>
where TListModel : class

Type Parameters

TSubsetModel
The type of object that holds the subset list, the list of identifiers.
TMasterModel
The type of object that holds the master list.
TListModel
The type of object in the master list.
TIdentifier
The type of identifier.

The MasterListToSubsetBinderTSubsetModel, TMasterModel, TListModel, TIdentifier type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAddHandler
Gets or sets the method that handles the adding of new items. Can only be set before initialisation.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyAutoAddEnabled
Gets or sets a value indicating that if AddHandler is null then an automatic add handler should be used.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyAutoDeleteEnabled
Gets or sets a value indicating that if DeleteHandler is null then an automatic delete handler should be used.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyCheckedChangedHandler
See base docs. Throws exception if you try to set it.
(Overrides MasterListToListBinderTModel, TListModelCheckedChangedHandler.)
Public propertyControl
Gets the control that is showing the list.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyControlObject
Gets the control that has been bound to the model.
(Inherited from ControlBinder.)
Public propertyControlValueObject
See base docs.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyDeleteHandler
Gets or sets the method that handles the removal of existing items. Can only be set before initialisation.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyEditHandler
Gets or sets the method that handles the editing of an existing item. Can only be set before initialisation.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyEnableSorting
Gets or sets a value indicating that the rows are to be sorted on display. Can only be set before initialisation.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyFetchColumns
Gets or sets the method that handles the fetching of columns. Can only be set before initialisation.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyGetListIdentifierAction
Gets or sets the action that retrieves the identifier from a row list item.
Public propertyGetSortValue
Gets or sets a delegate that returns a comparable value from the list model for a single column.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyGetSubsetAction
Gets or sets the action that retrieves the subset list from the subset model.
Public propertyInitialised
Gets a value indicating that the object has been initialised.
(Inherited from ControlBinder.)
Public propertyModel
Gets the model that owns the list.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyModelList
Gets the list held by the model.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyModelListBindingList
Gets the ModelList as an IBindingList.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertyModelObject
Gets the model that has been bound to the control.
(Inherited from ControlBinder.)
Public propertyModelSubsetBindingList
Gets the list of subset identitifers as an IBindingList.
Public propertyModelSubsetList
Gets the list of subset identifiers.
Public propertyModelValueObject
See base docs.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public propertySubsetModel
Gets or sets the object that holds the subset list of identifiers.
Public propertyUpdateMode
Gets or sets an indication of when values are copied from the control to the model. Cannot be modified once the binder has been initialised.
(Inherited from ControlBinder.)
Top
Methods
  NameDescription
Protected methodAddListModel
Calls the add handler, returns the list model that it creates.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected methodChangeModelObject
Changes the model object.
(Inherited from ControlBinder.)
Public methodCopyControlToModel
Refreshes the model's content with the content of the control.
(Inherited from ControlBinder.)
Protected methodCopyModelSubsetToControl
Sets the checkmarks on the control to mirror the checkmarks on the model list.
Public methodCopyModelToControl
Refreshes the control's content with the content of the model.
(Inherited from ControlBinder.)
Protected methodDeleteListModel
Calls the delete handler with the list model passed across.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public methodDispose
See interface docs.
(Inherited from ControlBinder.)
Protected methodDispose(Boolean)
See base class docs.
(Overrides MasterListToListBinderTModel, TListModelDispose(Boolean).)
Protected methodDoCopyControlToModel
See base docs.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected methodDoCopyModelToControl
See base docs.
(Overrides MasterListToListBinderTModel, TListModelDoCopyModelToControl.)
Protected methodDoHookControl
Performs the actual work of hooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoHookControlPropertyChanged
See base docs.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected methodDoHookModel
Performs the actual work of hooking the model. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoInitialiseControl
Does the work of initialising the control. By default this just calls CopyModelToControl.
(Inherited from ControlBinder.)
Protected methodDoInitialising
See base docs.
(Overrides MasterListToListBinderTModel, TListModelDoInitialising.)
Protected methodDoUnhookControl
Performs the actual work of unhooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoUnhookControlPropertyChanged
See base docs.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected methodDoUnhookModel
Performs the actual work of unhooking the model. Can be overridden.
(Inherited from ControlBinder.)
Protected methodEditListModel
Calls the edit handler with the list model passed across.
(Inherited from MasterListToListBinderTModel, TListModel.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Finalises the object.
(Inherited from ControlBinder.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHookControl
Hooks the events on the control.
(Inherited from ControlBinder.)
Protected methodHookModel
Hooks the events on the model.
(Inherited from ControlBinder.)
Public methodInitialise
Initialises the binder. Must be called before the binder will start working.
(Inherited from ControlBinder.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnhookControl
Unhooks the events on the control.
(Inherited from ControlBinder.)
Protected methodUnhookModel
Unhooks the events on the model.
(Inherited from ControlBinder.)
Top
Fields
  NameDescription
Protected field_BaseFetchColumns
The base method to fetch columns. We chain onto this.
Protected field_CheckedChangedHandler
Protected method that is handles changing the checked state for an item.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected field_FetchColumns
Protected method that fetches the content of the list, split into columns.
(Inherited from MasterListToListBinderTModel, TListModel.)
Protected field_UpdatesLocked
True if changes are not to be copied between the control and the model.
(Inherited from ControlBinder.)
Top
See Also