C# Class eXeMeL.ViewModel.EditorViewModel

Inheritance: ViewModelBase
Show file Open project: Grandpappy/eXeMeL

Public Methods

Method Description
CleanXmlIfPossibleAsync ( string xml ) : Task
EditorViewModel ( ) : eXeMeL.Messages
EditorViewModel ( Settings settings ) : eXeMeL.Messages
OpenFileAsync ( string filePath ) : void

Private Methods

Method Description
AddNewSnapshotOfCurrentDocumentText ( ) : void
AddNewSnapshotWithNewText ( string text ) : void
ChangeToSnapshot ( DocumentSnapshot snapshot ) : void
ChangeToSnapshotCommand_Execute ( DocumentSnapshot snapshot ) : void
CleanXml ( XmlCleanerContext context ) : System.Threading.Tasks.Task
ClearSnapshotsAfterDocument ( TextDocument textDocument ) : void
CopyCommand_Execute ( ) : void
CopyDecodedXmlFromCursorPositionCommand_CanExecute ( ) : bool
CopyDecodedXmlFromCursorPositionCommand_Execute ( ) : void
CreateSnapshotCommand_Execute ( ) : void
DelveIntoDecodedXmlFromCursorPositionCommand_Execute ( ) : void
GetDecodedTextAtCaretPositionAsync ( ) : Task
LoadFileContentsAsync ( string filePath ) : Task
RaiseRefreshComplete ( ) : void
RefreshCommand_Execute ( ) : void
RenameAllSnapshots ( ) : void
ReplaceCurrentDocumentText ( string newText ) : void
ReplaceOldDocumentWithNewDocument ( string newText ) : void
ResetSnapshots ( ) : void
SaveCommand_Execute ( ) : void
SetDocumentTextFromClipboardAsync ( ) : System.Threading.Tasks.Task
XmlShouldBeCleaned ( string xml ) : bool

Method Details

CleanXmlIfPossibleAsync() public method

public CleanXmlIfPossibleAsync ( string xml ) : Task
xml string
return Task

EditorViewModel() public method

public EditorViewModel ( ) : eXeMeL.Messages
return eXeMeL.Messages

EditorViewModel() public method

public EditorViewModel ( Settings settings ) : eXeMeL.Messages
settings eXeMeL.Model.Settings
return eXeMeL.Messages

OpenFileAsync() public method

public OpenFileAsync ( string filePath ) : void
filePath string
return void