C# Class Zetbox.API.BaseNotifyingObject

Inheritance: INotifyingObject
Afficher le fichier Open project: daszat/zetbox

Méthodes publiques

Méthode Description
IsInitialized ( string propName ) : bool
NotifyPropertyChanged ( string property, object oldValue, object newValue ) : void

Notifies that a property has been changed

NotifyPropertyChanging ( string property, object oldValue, object newValue ) : void

Notifies that a property will be changed

PlaybackNotifications ( ) : void

Playback all recorded notifications. Only the PropertyChanged event is fired This function does nothing if it is called more then once.

Recalculate ( string propName ) : void
RecordNotifications ( ) : void

Records notifications. PropertyChanged & PropertyChanging will not be fired until PlaybackNotifications is called. This function does nothing if it is called more then once.

Méthodes protégées

Méthode Description
AuditPropertyChange ( string property, object oldValue, object newValue ) : void
LogAudits ( ) : void
OnPropertyChanged ( string property, object oldValue, object newValue ) : void

Fires PropertyChanged and PropertyChangedWithValue events

This method should not be called directy. Use NofityPropertyChanging.

OnPropertyChanging ( string property, object oldValue, object newValue ) : void

Fires PropertyChanging and PropertyChangingWithValue events.

This method should not be called directy. Use NofityPropertyChanging.

SetInitializedProperty ( string propName ) : void
SetModified ( ) : void
SetNotInitializedProperty ( string propName ) : void
ShouldSetModified ( string property ) : bool

Method Details

AuditPropertyChange() protected méthode

protected AuditPropertyChange ( string property, object oldValue, object newValue ) : void
property string
oldValue object
newValue object
Résultat void

IsInitialized() public méthode

public IsInitialized ( string propName ) : bool
propName string
Résultat bool

LogAudits() protected méthode

protected LogAudits ( ) : void
Résultat void

NotifyPropertyChanged() public méthode

Notifies that a property has been changed
public NotifyPropertyChanged ( string property, object oldValue, object newValue ) : void
property string Propertyname
oldValue object old value of the changed property
newValue object new value of the changed property
Résultat void

NotifyPropertyChanging() public méthode

Notifies that a property will be changed
public NotifyPropertyChanging ( string property, object oldValue, object newValue ) : void
property string Propertyname
oldValue object old value of the changing property
newValue object new value of the changing property
Résultat void

OnPropertyChanged() protected méthode

Fires PropertyChanged and PropertyChangedWithValue events
This method should not be called directy. Use NofityPropertyChanging.
protected OnPropertyChanged ( string property, object oldValue, object newValue ) : void
property string Propertyname
oldValue object old value of the changed property
newValue object new value of the changed property
Résultat void

OnPropertyChanging() protected méthode

Fires PropertyChanging and PropertyChangingWithValue events.
This method should not be called directy. Use NofityPropertyChanging.
protected OnPropertyChanging ( string property, object oldValue, object newValue ) : void
property string Propertyname
oldValue object old value of the changed property
newValue object new value of the changed property
Résultat void

PlaybackNotifications() public méthode

Playback all recorded notifications. Only the PropertyChanged event is fired This function does nothing if it is called more then once.
public PlaybackNotifications ( ) : void
Résultat void

Recalculate() public méthode

public Recalculate ( string propName ) : void
propName string
Résultat void

RecordNotifications() public méthode

Records notifications. PropertyChanged & PropertyChanging will not be fired until PlaybackNotifications is called. This function does nothing if it is called more then once.
public RecordNotifications ( ) : void
Résultat void

SetInitializedProperty() protected méthode

protected SetInitializedProperty ( string propName ) : void
propName string
Résultat void

SetModified() protected abstract méthode

protected abstract SetModified ( ) : void
Résultat void

SetNotInitializedProperty() protected méthode

protected SetNotInitializedProperty ( string propName ) : void
propName string
Résultat void

ShouldSetModified() protected méthode

protected ShouldSetModified ( string property ) : bool
property string
Résultat bool