示例#1
0
        public async Task SaveContentToFileAndUpdateEditorState(ITextEditor textEditor, StorageFile file)
        {
            await textEditor.SaveContentToFileAndUpdateEditorState(file); // Will throw if not succeeded

            MarkTextEditorSetSaved(textEditor);
            TextEditorSaved?.Invoke(this, textEditor);
        }
示例#2
0
        public async Task SaveTextEditorContentToFile(TextEditor textEditor, StorageFile file)
        {
            await textEditor.SaveToFile(file);

            TextEditorSaved?.Invoke(this, textEditor);
        }