Click or drag to resize
MasterListToListBinderTModel, TListModel Class
A binder between a master list control and a list of objects.
Inheritance Hierarchy

Namespace: VirtualRadar.WinForms.PortableBinding
Assembly: VirtualRadar.WinForms (in VirtualRadar.WinForms.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class MasterListToListBinder<TModel, TListModel> : ControlBinder
where TListModel : class

Type Parameters

TModel
TListModel

The MasterListToListBinderTModel, TListModel 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.
Public propertyAutoAddEnabled
Gets or sets a value indicating that if AddHandler is null then an automatic add handler should be used.
Public propertyAutoDeleteEnabled
Gets or sets a value indicating that if DeleteHandler is null then an automatic delete handler should be used.
Public propertyCheckedChangedHandler
Gets or sets the method that handles the change in checked state for an existing item. Can only be set before initialisation.
Public propertyControl
Gets the control that is showing the list.
Public propertyControlObject
Gets the control that has been bound to the model.
(Inherited from ControlBinder.)
Public propertyControlValueObject
See base docs.
(Overrides ControlBinderControlValueObject.)
Public propertyDeleteHandler
Gets or sets the method that handles the removal of existing items. Can only be set before initialisation.
Public propertyEditHandler
Gets or sets the method that handles the editing of an existing item. Can only be set before initialisation.
Public propertyEnableSorting
Gets or sets a value indicating that the rows are to be sorted on display. Can only be set before initialisation.
Public propertyFetchColumns
Gets or sets the method that handles the fetching of columns. Can only be set before initialisation.
Public propertyGetSortValue
Gets or sets a delegate that returns a comparable value from the list model for a single column.
Public propertyInitialised
Gets a value indicating that the object has been initialised.
(Inherited from ControlBinder.)
Public propertyModel
Gets the model that owns the list.
Public propertyModelList
Gets the list held by the model.
Public propertyModelListBindingList
Gets the ModelList as an IBindingList.
Public propertyModelObject
Gets the model that has been bound to the control.
(Inherited from ControlBinder.)
Public propertyModelValueObject
See base docs.
(Overrides ControlBinderModelValueObject.)
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.
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.)
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.
Public methodDispose
See interface docs.
(Inherited from ControlBinder.)
Protected methodDispose(Boolean)
See base docs.
(Overrides ControlBinderDispose(Boolean).)
Protected methodDoCopyControlToModel
See base docs.
(Overrides ControlBinderDoCopyControlToModel.)
Protected methodDoCopyModelToControl
See base docs.
(Overrides ControlBinderDoCopyModelToControl.)
Protected methodDoHookControl
Performs the actual work of hooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoHookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoHookControlPropertyChanged(EventHandler).)
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 ControlBinderDoInitialising.)
Protected methodDoUnhookControl
Performs the actual work of unhooking the control. Can be overridden.
(Inherited from ControlBinder.)
Protected methodDoUnhookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoUnhookControlPropertyChanged(EventHandler).)
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.
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_CheckedChangedHandler
Protected method that is handles changing the checked state for an item.
Protected field_FetchColumns
Protected method that fetches the content of the list, split into columns.
Protected field_UpdatesLocked
True if changes are not to be copied between the control and the model.
(Inherited from ControlBinder.)
Top
See Also