C# Class Zetbox.API.BaseNotifyingObject

Inheritance: INotifyingObject
Show file Open project: daszat/zetbox

Public Methods

Method 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.

Protected Methods

Method 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 method

protected AuditPropertyChange ( string property, object oldValue, object newValue ) : void
property string
oldValue object
newValue object
return void

IsInitialized() public method

public IsInitialized ( string propName ) : bool
propName string
return bool

LogAudits() protected method

protected LogAudits ( ) : void
return void

NotifyPropertyChanged() public method

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
return void

NotifyPropertyChanging() public method

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
return void

OnPropertyChanged() protected method

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
return void

OnPropertyChanging() protected method

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
return void

PlaybackNotifications() public method

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

Recalculate() public method

public Recalculate ( string propName ) : void
propName string
return void

RecordNotifications() public method

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
return void

SetInitializedProperty() protected method

protected SetInitializedProperty ( string propName ) : void
propName string
return void

SetModified() protected abstract method

protected abstract SetModified ( ) : void
return void

SetNotInitializedProperty() protected method

protected SetNotInitializedProperty ( string propName ) : void
propName string
return void

ShouldSetModified() protected method

protected ShouldSetModified ( string property ) : bool
property string
return bool