C# Class SIL.FieldWorks.SharpViews.Hookups.Hookup

A Hookup represents the connection between the domain (a property of an object) and a section of a view (one or more boxes or strings). Typically it knows how to connect to an event (and disconnect when disposed) that is raised when a particular property changes, how to get the value, and how to inform the view of the change. Some subtypes may (eventually) know how to perform the reverse operation, that is, when something in the view is edited, the Hookup knows what should be changed in the domain model.
Inheritance: IHookup, IHookupInternal, IDisposable, IReceivePropChanged
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Hookup ( object target ) : System
IHookupInternal ( GroupHookup parent ) : void
PropChanged ( object sender, EventArgs args ) : void

Should be sent when the particular property that this hookup manages changes. Subclasses override as needed.

PropChanged ( object sender, ObjectSequenceEventArgs args ) : void
SelectAtEnd ( ) : InsertionPoint

Make an insertion point at the end of the data covered by the hookup. This base implementation doesn't have any way to do so.

SelectAtStart ( ) : InsertionPoint

Make an insertion point at the start of the data covered by the hookup. This base implementation doesn't have any way to do so.

Protected Methods

Method Description
Dispose ( bool beforeDestructor ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool beforeDestructor ) : void
beforeDestructor bool
return void

Hookup() public method

public Hookup ( object target ) : System
target object
return System

IHookupInternal() public method

public IHookupInternal ( GroupHookup parent ) : void
parent GroupHookup
return void

PropChanged() public method

Should be sent when the particular property that this hookup manages changes. Subclasses override as needed.
public PropChanged ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

PropChanged() public method

public PropChanged ( object sender, ObjectSequenceEventArgs args ) : void
sender object
args ObjectSequenceEventArgs
return void

SelectAtEnd() public method

Make an insertion point at the end of the data covered by the hookup. This base implementation doesn't have any way to do so.
public SelectAtEnd ( ) : InsertionPoint
return SIL.FieldWorks.SharpViews.Selections.InsertionPoint

SelectAtStart() public method

Make an insertion point at the start of the data covered by the hookup. This base implementation doesn't have any way to do so.
public SelectAtStart ( ) : InsertionPoint
return SIL.FieldWorks.SharpViews.Selections.InsertionPoint