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
Show file Open project: gro-ove/actools Class Usage Examples

Protected Properties

Property Type Description
Saveable ISaveHelper

Public Methods

Method 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

Protected Methods

Method Description
BaseAssistsViewModel ( string key, bool fixedMode ) : System

Inner constructor.

SaveLater ( ) : void

Method Details

BaseAssistsViewModel() public method

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

BaseAssistsViewModel() protected method

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

CreateFixed() public static method

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 [
return BaseAssistsViewModel

SaveLater() protected method

protected SaveLater ( ) : void
return void

ToGameProperties() public method

public ToGameProperties ( ) : Game.AssistsProperties
return Game.AssistsProperties

Property Details

Saveable protected property

protected ISaveHelper Saveable
return ISaveHelper