C# Class BudgetAnalyser.ApplicationState.PersistApplicationStateAsXaml

An implmentation of IPersistApplicationState that saves the user meta-data as Xaml to a file on the local disk.
Inheritance: IPersistApplicationState
Afficher le fichier Open project: Benrnz/BudgetAnalyser

Méthodes publiques

Méthode Description
Load ( ) : IEnumerable

Load the user state from the Xaml file on the local disk.

Persist ( IEnumerable modelsToPersist ) : void

Persist the user data to the Xaml file on the local disk.

PersistApplicationStateAsXaml ( [ userMessageBox ) : System

Initializes a new instance of the PersistApplicationStateAsXaml class.

Private Methods

Méthode Description
HandleCorruptFileGracefully ( Exception ex ) : IEnumerable

Method Details

Load() public méthode

Load the user state from the Xaml file on the local disk.
/// This will be thrown if the file is /// invalid. ///
public Load ( ) : IEnumerable
Résultat IEnumerable

Persist() public méthode

Persist the user data to the Xaml file on the local disk.
public Persist ( IEnumerable modelsToPersist ) : void
modelsToPersist IEnumerable /// All components in the App that implement so /// the implementation can go get the data to persist. ///
Résultat void

PersistApplicationStateAsXaml() public méthode

Initializes a new instance of the PersistApplicationStateAsXaml class.
userMessageBox cannot be null.
public PersistApplicationStateAsXaml ( [ userMessageBox ) : System
userMessageBox [ A service to show the user a message box.
Résultat System