MainWindow.SaveFile Saves the file in the active editor. public Task<bool> SaveFile(bool secureSave, bool promptForSaveIfDirty) Parameters secureSave Pops up Secure File popup promptForSaveIfDirty If set prompts before saving if the file is dirty