/// <summary> /// 另存为 /// </summary> public void SaveDocAsNew() { var p = BLL.FileManager.SaveMarkdownFile(markEdit.textEditor.Text); if (p) { Common.ShowStatusMessage("文件保存成功"); } ChangeTitle(); }
private static void Pechkin_Finished(SimplePechkin converter, bool success) { if (success) { Common.ShowStatusMessage("导出PDF成功"); } else { Common.ShowStatusMessage("导出失败"); } }
/// <summary> /// 保存文件 /// </summary> public void SaveDoc() { bool result = false; if (string.IsNullOrEmpty(BLL.FileManager.SavePath)) { result = BLL.FileManager.SaveMarkdownFile(markEdit.textEditor.Text); } else { result = BLL.FileManager.SaveMarkdownFileWithoutDialg(markEdit.textEditor.Text); } if (result) { Common.ShowStatusMessage("文件保存成功"); } ChangeTitle(); }
private static void Pechkin_Error(SimplePechkin converter, string errorText) { Common.ShowStatusMessage("导出失败:" + errorText); }
private static void Pechkin_ProgressChanged(SimplePechkin converter, int progress, string progressDescription) { Common.ShowStatusMessage(progressDescription); }