void IViewContent.Save(FileSaveInformation fileSaveInformation) { if (!string.IsNullOrEmpty(fileSaveInformation.FileName)) { AutoSave.RemoveAutoSaveFile(fileSaveInformation.FileName); } textEditorImpl.Save(fileSaveInformation); }
protected override Task OnSave() { if (!string.IsNullOrEmpty(textEditorImpl.ContentName)) { AutoSave.RemoveAutoSaveFile(textEditorImpl.ContentName); } return(textEditorImpl.Save(new FileSaveInformation(FilePath, Encoding))); }