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
Afficher le fichier Open project: RagingBigFemaleBird/sgs

Méthodes publiques

Méthode Description
AttachAll ( ) : void
DetachAll ( ) : void
Dispose ( ) : void

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

Méthodes protégées

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

Méthode Description
VerifyPropertyName ( string propertyName ) : void
_UpdateAll ( ) : void

Method Details

AttachAll() public static méthode

public static AttachAll ( ) : void
Résultat void

DetachAll() public static méthode

public static DetachAll ( ) : void
Résultat void

Dispose() public méthode

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

OnDispose() protected méthode

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

OnPropertyChanged() protected méthode

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

ViewModelBase() protected méthode

protected ViewModelBase ( ) : System
Résultat System