C# Class RazorPad.UI.Persistence.AutoSaver

Show file Open project: RazorPad/RazorPad

Public Methods

Method Description
Clear ( ) : void

Removes any existing auto-save documents

Load ( ) : RazorDocument

Loads the last auto-saved document

Save ( RazorDocument document ) : void

Auto-Saves the document

Private Methods

Method Description
AutoSaver ( IRazorDocumentSource source ) : System.ComponentModel.Composition

Method Details

Clear() public method

Removes any existing auto-save documents
public Clear ( ) : void
return void

Load() public method

Loads the last auto-saved document
public Load ( ) : RazorDocument
return RazorDocument

Save() public method

Auto-Saves the document
public Save ( RazorDocument document ) : void
document RazorDocument The document to save
return void