Click or drag to resize
AccessControlBinderTModel Class
A binder between an Access object and an AccessControl control.
Inheritance Hierarchy
SystemObject
  VirtualRadar.WinForms.PortableBindingControlBinder
    VirtualRadar.WinForms.PortableBindingAccessControlBinderTModel

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

Type Parameters

TModel

The AccessControlBinderTModel type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAccess
Gets the Access exposed by the model.
Public propertyControl
Gets the control that we're bound to.
Public propertyControlObject
Gets the control that has been bound to the model.
(Inherited from ControlBinder.)
Public propertyControlValueObject
See base docs.
(Overrides ControlBinderControlValueObject.)
Public propertyInitialised
Gets a value indicating that the object has been initialised.
(Inherited from ControlBinder.)
Public propertyModel
Gets the model that we're bound to.
Public propertyModelObject
Gets the model that has been bound to the control.
(Inherited from ControlBinder.)
Public propertyModelPropertyName
Gets or sets the name of the model's property to bind to. Only required if the ctor getModelAccess parameter does more than just return a property. Cannot be set once the binder has been initialised.
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 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.)
Public methodDispose
See interface docs.
(Inherited from ControlBinder.)
Protected methodDispose(Boolean)
Finalises or disposes of the object.
(Inherited from ControlBinder.)
Protected methodDoCopyControlToModel
See base docs.
(Overrides ControlBinderDoCopyControlToModel.)
Protected methodDoCopyModelToControl
See base docs.
(Overrides ControlBinderDoCopyModelToControl.)
Protected methodDoHookControl
See base docs.
(Overrides ControlBinderDoHookControl.)
Protected methodDoHookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoHookControlPropertyChanged(EventHandler).)
Protected methodDoHookModel
See base docs.
(Overrides ControlBinderDoHookModel.)
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
See base docs.
(Overrides ControlBinderDoUnhookControl.)
Protected methodDoUnhookControlPropertyChanged
See base docs.
(Overrides ControlBinderDoUnhookControlPropertyChanged(EventHandler).)
Protected methodDoUnhookModel
See base docs.
(Overrides ControlBinderDoUnhookModel.)
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_UpdatesLocked
True if changes are not to be copied between the control and the model.
(Inherited from ControlBinder.)
Top
See Also