C# Class RazorPad.ViewModels.MainViewModel

Inheritance: ViewModelBase
Afficher le fichier Open project: RazorPad/RazorPad

Méthodes publiques

Свойство Type Description
ConfirmSaveDirtyDocumentThunk MessageBoxResult>.Func
GetOpenFilenameThunk Func
GetReferencesThunk IEnumerable>.Func
GetSaveAsFilenameThunk string>.Func
LoadThemeFromFileThunk Action
ShowErrorThunk Action

Protected Properties

Свойство Type Description
Log Logger

Private Properties

Свойство Type Description
ChangeFontSize void
MainViewModel System
OnAutoSave void
RegisterCommands void
SwitchTheme void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddNewTemplateEditor ( RazorDocument document, bool current = true ) : void
document RazorDocument
current bool
Résultat void

AddNewTemplateEditor() public méthode

public AddNewTemplateEditor ( RazorTemplateViewModel template, bool current = true ) : void
template RazorTemplateViewModel
current bool
Résultat void

AddNewTemplateEditor() public méthode

public AddNewTemplateEditor ( bool current = true ) : void
current bool
Résultat void

AddNewTemplateEditor() public méthode

public AddNewTemplateEditor ( string filename, bool current = true ) : void
filename string
current bool
Résultat void

Close() public méthode

public Close ( RazorTemplateViewModel document, bool save = null ) : void
document RazorTemplateViewModel
save bool
Résultat void

LoadAutoSave() public méthode

public LoadAutoSave ( ) : void
Résultat void

Save() public méthode

public Save ( RazorTemplateViewModel document ) : void
document RazorTemplateViewModel
Résultat void

SaveAs() public méthode

public SaveAs ( RazorTemplateViewModel document, string filename = null ) : string
document RazorTemplateViewModel
filename string
Résultat string

SetRecentReferences() public méthode

public SetRecentReferences ( IEnumerable references ) : void
references IEnumerable
Résultat void

Property Details

ConfirmSaveDirtyDocumentThunk public_oe property

public Func ConfirmSaveDirtyDocumentThunk
Résultat MessageBoxResult>.Func

GetOpenFilenameThunk public_oe property

public Func GetOpenFilenameThunk
Résultat Func

GetReferencesThunk public_oe property

public Func,IEnumerable> GetReferencesThunk
Résultat IEnumerable>.Func

GetSaveAsFilenameThunk public_oe property

public Func GetSaveAsFilenameThunk
Résultat string>.Func

LoadThemeFromFileThunk public_oe property

public Action LoadThemeFromFileThunk
Résultat Action

Log protected_oe static_oe property

protected static Logger Log
Résultat Logger

ShowErrorThunk public_oe property

public Action ShowErrorThunk
Résultat Action