C# Class Sanguosha.UI.Controls.ViewModelBase

Base class for all ViewModel classes in the application. It provides support for property change notifications and has a DisplayName property. This class is abstract.
Inheritance: INotifyPropertyChanged, IDisposable
ファイルを表示 Open project: RagingBigFemaleBird/sgs

Public Methods

Method Description
AttachAll ( ) : void
DetachAll ( ) : void
Dispose ( ) : void

Invoked when this object is being removed from the application and will be subject to garbage collection.

Protected Methods

Method Description
OnDispose ( ) : void

Child classes can override this method to perform clean-up logic, such as removing event handlers.

OnPropertyChanged ( string propertyName ) : void

Raises this object's PropertyChanged event.

ViewModelBase ( ) : System

Private Methods

Method Description
VerifyPropertyName ( string propertyName ) : void
_UpdateAll ( ) : void

Method Details

AttachAll() public static method

public static AttachAll ( ) : void
return void

DetachAll() public static method

public static DetachAll ( ) : void
return void

Dispose() public method

Invoked when this object is being removed from the application and will be subject to garbage collection.
public Dispose ( ) : void
return void

OnDispose() protected method

Child classes can override this method to perform clean-up logic, such as removing event handlers.
protected OnDispose ( ) : void
return void

OnPropertyChanged() protected method

Raises this object's PropertyChanged event.
protected OnPropertyChanged ( string propertyName ) : void
propertyName string The property that has a new value.
return void

ViewModelBase() protected method

protected ViewModelBase ( ) : System
return System