C# Class AcManager.Controls.ViewModels.BaseAssistsViewModel

Base view model — usually only to load stuff to display from serialized data. Could save data too, it depends on creation way. For more information look at Constructors region.
Inheritance: FirstFloor.ModernUI.Presentation.NotifyPropertyChanged
Afficher le fichier Open project: gro-ove/actools Class Usage Examples

Protected Properties

Свойство Type Description
Saveable ISaveHelper

Méthodes publiques

Méthode Description
BaseAssistsViewModel ( ) : System

Full load-and-save mode. All changes will be saved automatically and loaded later (only with this constuctor).

CreateFixed ( [ serializedData ) : BaseAssistsViewModel

Create a new AssistsViewModel which will load data from serialized string, but won’t save any changes if they will occur.

ToGameProperties ( ) : Game.AssistsProperties

Méthodes protégées

Méthode Description
BaseAssistsViewModel ( string key, bool fixedMode ) : System

Inner constructor.

SaveLater ( ) : void

Method Details

BaseAssistsViewModel() public méthode

Full load-and-save mode. All changes will be saved automatically and loaded later (only with this constuctor).
public BaseAssistsViewModel ( ) : System
Résultat System

BaseAssistsViewModel() protected méthode

Inner constructor.
protected BaseAssistsViewModel ( string key, bool fixedMode ) : System
key string ValuesStorage key
fixedMode bool Prevent saving
Résultat System

CreateFixed() public static méthode

Create a new AssistsViewModel which will load data from serialized string, but won’t save any changes if they will occur.
public static CreateFixed ( [ serializedData ) : BaseAssistsViewModel
serializedData [
Résultat BaseAssistsViewModel

SaveLater() protected méthode

protected SaveLater ( ) : void
Résultat void

ToGameProperties() public méthode

public ToGameProperties ( ) : Game.AssistsProperties
Résultat Game.AssistsProperties

Property Details

Saveable protected_oe property

protected ISaveHelper Saveable
Résultat ISaveHelper