C# 클래스 BudgetAnalyser.ApplicationState.PersistApplicationStateAsXaml

An implmentation of IPersistApplicationState that saves the user meta-data as Xaml to a file on the local disk.
상속: IPersistApplicationState
파일 보기 프로젝트 열기: Benrnz/BudgetAnalyser

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
HandleCorruptFileGracefully ( Exception ex ) : IEnumerable

메소드 상세

Load() 공개 메소드

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

Persist() 공개 메소드

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. ///
리턴 void

PersistApplicationStateAsXaml() 공개 메소드

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.
리턴 System