Пример #1
0
        private void btnShowPreview_Click(object sender, EventArgs e)
        {
            if (_markdownPath == null)
            {
                MessageBox.Show("No markdown loaded! Please open a markdown file first.", "No markdown");
                return;
            }

            string htmlPath = CreatePreviewHtml();


            if (MonoHelper.IsRunningOnMono)
            {
                Process.Start(htmlPath);
            }
            else
            {
                DragonUtil.OpenFileInDefaultApplication(htmlPath);
            }
        }
Пример #2
0
 public static void OpenHtmlResult(string generatedHtmlPath)
 {
     Console.WriteLine("Opening HTML file in default application...");
     DragonUtil.OpenFileInDefaultApplication(generatedHtmlPath);
 }