C# Class RazorPad.ViewModels.MainViewModel

Inheritance: ViewModelBase
Datei anzeigen Open project: RazorPad/RazorPad

Public Properties

Property Type Description
ConfirmSaveDirtyDocumentThunk MessageBoxResult>.Func
GetOpenFilenameThunk Func
GetReferencesThunk IEnumerable>.Func
GetSaveAsFilenameThunk string>.Func
LoadThemeFromFileThunk Action
ShowErrorThunk Action

Protected Properties

Property Type Description
Log Logger

Private Properties

Property Type Description
ChangeFontSize void
MainViewModel System
OnAutoSave void
RegisterCommands void
SwitchTheme void

Public Methods

Method Description
AddNewTemplateEditor ( RazorDocument document, bool current = true ) : void
AddNewTemplateEditor ( RazorTemplateViewModel template, bool current = true ) : void
AddNewTemplateEditor ( bool current = true ) : void
AddNewTemplateEditor ( string filename, bool current = true ) : void
Close ( RazorTemplateViewModel document, bool save = null ) : void
LoadAutoSave ( ) : void
Save ( RazorTemplateViewModel document ) : void
SaveAs ( RazorTemplateViewModel document, string filename = null ) : string
SetRecentReferences ( IEnumerable references ) : void

Private Methods

Method Description
ChangeFontSize ( object param ) : void
MainViewModel ( RazorDocumentManager documentManager, ModelProviders modelProviders, ModelBuilders modelBuilders ) : System
OnAutoSave ( object sender, EventArgs e ) : void
RegisterCommands ( ) : void
SwitchTheme ( Theme theme ) : void

Method Details

AddNewTemplateEditor() public method

public AddNewTemplateEditor ( RazorDocument document, bool current = true ) : void
document RazorDocument
current bool
return void

AddNewTemplateEditor() public method

public AddNewTemplateEditor ( RazorTemplateViewModel template, bool current = true ) : void
template RazorTemplateViewModel
current bool
return void

AddNewTemplateEditor() public method

public AddNewTemplateEditor ( bool current = true ) : void
current bool
return void

AddNewTemplateEditor() public method

public AddNewTemplateEditor ( string filename, bool current = true ) : void
filename string
current bool
return void

Close() public method

public Close ( RazorTemplateViewModel document, bool save = null ) : void
document RazorTemplateViewModel
save bool
return void

LoadAutoSave() public method

public LoadAutoSave ( ) : void
return void

Save() public method

public Save ( RazorTemplateViewModel document ) : void
document RazorTemplateViewModel
return void

SaveAs() public method

public SaveAs ( RazorTemplateViewModel document, string filename = null ) : string
document RazorTemplateViewModel
filename string
return string

SetRecentReferences() public method

public SetRecentReferences ( IEnumerable references ) : void
references IEnumerable
return void

Property Details

ConfirmSaveDirtyDocumentThunk public_oe property

public Func ConfirmSaveDirtyDocumentThunk
return MessageBoxResult>.Func

GetOpenFilenameThunk public_oe property

public Func GetOpenFilenameThunk
return Func

GetReferencesThunk public_oe property

public Func,IEnumerable> GetReferencesThunk
return IEnumerable>.Func

GetSaveAsFilenameThunk public_oe property

public Func GetSaveAsFilenameThunk
return string>.Func

LoadThemeFromFileThunk public_oe property

public Action LoadThemeFromFileThunk
return Action

Log protected_oe static_oe property

protected static Logger Log
return Logger

ShowErrorThunk public_oe property

public Action ShowErrorThunk
return Action