public void SaveAs(string filePath) { NotebookItemsSaveRequest?.Invoke(this, EventArgs.Empty); Notebook.Invoke(() => { Notebook.Execute("VACUUM"); Notebook.SaveAs(filePath); }); }
public void Save() { NotebookItemsSaveRequest?.Invoke(this, EventArgs.Empty); Notebook.Invoke(() => { Notebook.Execute("VACUUM"); Notebook.Save(); }); }
public void SaveAs(string filePath, CancellationToken cancel) { NotebookItemsSaveRequest?.Invoke(this, EventArgs.Empty); using var status = WaitStatus.StartCustom(Path.GetFileName(filePath)); Notebook.SaveAs(filePath, c => status.SetProgress($"{c}% complete"), cancel); }
public void CommitOpenEditors() { NotebookItemsSaveRequest?.Invoke(this, EventArgs.Empty); }