C# Класс Zetbox.API.BaseNotifyingObject

Наследование: INotifyingObject
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Описание методов

AuditPropertyChange() защищенный Метод

protected AuditPropertyChange ( string property, object oldValue, object newValue ) : void
property string
oldValue object
newValue object
Результат void

IsInitialized() публичный Метод

public IsInitialized ( string propName ) : bool
propName string
Результат bool

LogAudits() защищенный Метод

protected LogAudits ( ) : void
Результат void

NotifyPropertyChanged() публичный Метод

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
Результат void

NotifyPropertyChanging() публичный Метод

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
Результат void

OnPropertyChanged() защищенный Метод

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
Результат void

OnPropertyChanging() защищенный Метод

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
Результат void

PlaybackNotifications() публичный Метод

Playback all recorded notifications. Only the PropertyChanged event is fired This function does nothing if it is called more then once.
public PlaybackNotifications ( ) : void
Результат void

Recalculate() публичный Метод

public Recalculate ( string propName ) : void
propName string
Результат void

RecordNotifications() публичный Метод

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
Результат void

SetInitializedProperty() защищенный Метод

protected SetInitializedProperty ( string propName ) : void
propName string
Результат void

SetModified() защищенный абстрактный Метод

protected abstract SetModified ( ) : void
Результат void

SetNotInitializedProperty() защищенный Метод

protected SetNotInitializedProperty ( string propName ) : void
propName string
Результат void

ShouldSetModified() защищенный Метод

protected ShouldSetModified ( string property ) : bool
property string
Результат bool