1.design with the delegates.Use the ?? operator everywhere to simplify a bit
example:
if (jump == null)
{
Run();
}
else
{
jump();
}
should be:
(jump ?? Run)();
or
(jump ?? Run).Invoke();
2. 版本
Application.ProductVersion
3. Html to word
var varWord = new Microsoft.Office.Interop.Word.Application();
varWord.Visible = false;
Object o = Type.Missing;
object docFile = @"D:\Test.mht";
var varDoc = varWord.Documents.Open(ref docFile,ref o, true);
varDoc.SaveAs2(@"d:\test1.doc");
object t = true;
varWord.Quit(true);