Esempio n. 1
0
        /// <summary>
        /// 另存为
        /// </summary>
        public void SaveDocAsNew()
        {
            var p = BLL.FileManager.SaveMarkdownFile(markEdit.textEditor.Text);

            if (p)
            {
                Common.ShowStatusMessage("文件保存成功");
            }
            ChangeTitle();
        }
Esempio n. 2
0
 private static void Pechkin_Finished(SimplePechkin converter, bool success)
 {
     if (success)
     {
         Common.ShowStatusMessage("导出PDF成功");
     }
     else
     {
         Common.ShowStatusMessage("导出失败");
     }
 }
Esempio n. 3
0
        /// <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();
        }
Esempio n. 4
0
 private static void Pechkin_Error(SimplePechkin converter, string errorText)
 {
     Common.ShowStatusMessage("导出失败:" + errorText);
 }
Esempio n. 5
0
 private static void Pechkin_ProgressChanged(SimplePechkin converter, int progress, string progressDescription)
 {
     Common.ShowStatusMessage(progressDescription);
 }