update doc workflow

This commit is contained in:
qianlifeng
2014-01-25 00:21:16 +08:00
parent 63072205d6
commit abedc0be80
11 changed files with 169 additions and 59 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
@@ -14,10 +15,19 @@ namespace WinAlfred.Plugin.Doc
public DocViewFrm()
{
InitializeComponent();
FormClosing+=DocViewFrm_FormClosing;
}
private void DocViewFrm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
Hide();
}
public void ShowDoc(string path)
{
//string html = File.ReadAllText(path);
//webBrowser1.DocumentText = html;
webBrowser1.Url = new Uri(String.Format("file:///{0}", path));
Show();
}