public async Task SaveContentToFileAndUpdateEditorState(ITextEditor textEditor, StorageFile file) { await textEditor.SaveContentToFileAndUpdateEditorState(file); // Will throw if not succeeded MarkTextEditorSetSaved(textEditor); TextEditorSaved?.Invoke(this, textEditor); }
public async Task SaveTextEditorContentToFile(TextEditor textEditor, StorageFile file) { await textEditor.SaveToFile(file); TextEditorSaved?.Invoke(this, textEditor); }