C# Class Regul.S3PI.Interfaces.AHandlerElement

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

Protected Properties

Свойство Type Description
dirty bool
handler EventHandler

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnElementChanged ( ) : void

Flag the AHandlerElement as dirty and invoke the EventHandler delegate.

Private Methods

Méthode Description
SetHandler ( EventHandler handler ) : void

Change the element change handler to handler.

Method Details

AHandlerElement() public méthode

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

Clone() public méthode

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

OnElementChanged() protected méthode

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

Property Details

dirty protected_oe property

Indicates if the AHandlerElement has been changed by OnElementChanged()
protected bool dirty
Résultat bool

handler protected_oe property

Holds the EventHandler delegate to invoke if the AHandlerElement changes.
protected EventHandler handler
Résultat EventHandler