C# Class Regul.S3PI.Interfaces.AHandlerElement

A useful extension to AApiVersionedFields where a change handler is required
Inheritance: AApiVersionedFields
Show file Open project: Onebeld/Regul Class Usage Examples

Protected Properties

Property Type Description
dirty bool
handler EventHandler

Public Methods

Method Description
AHandlerElement ( EventHandler handler ) : System

Initialize a new instance

Clone ( EventHandler handler ) : AHandlerElement

Get a copy of the AHandlerElement but with a new change EventHandler.

Protected Methods

Method Description
OnElementChanged ( ) : void

Flag the AHandlerElement as dirty and invoke the EventHandler delegate.

Private Methods

Method Description
SetHandler ( EventHandler handler ) : void

Change the element change handler to handler.

Method Details

AHandlerElement() public method

Initialize a new instance
public AHandlerElement ( EventHandler handler ) : System
handler EventHandler The delegate to invoke if the changes.
return System

Clone() public method

Get a copy of the AHandlerElement but with a new change EventHandler.
public Clone ( EventHandler handler ) : AHandlerElement
handler EventHandler The replacement delegate.
return AHandlerElement

OnElementChanged() protected method

Flag the AHandlerElement as dirty and invoke the EventHandler delegate.
protected OnElementChanged ( ) : void
return void

Property Details

dirty protected property

Indicates if the AHandlerElement has been changed by OnElementChanged()
protected bool dirty
return bool

handler protected property

Holds the EventHandler delegate to invoke if the AHandlerElement changes.
protected EventHandler handler
return EventHandler