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