新增支持文本中点击打开超链接
This commit is contained in:
parent
1d1716ca4e
commit
a1e2ba1c9f
|
@ -2,6 +2,7 @@
|
|||
using CalendarNotepad.Models;
|
||||
using Microsoft.VisualBasic;
|
||||
using SqlSugar;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace CalendarNotepad
|
||||
{
|
||||
|
@ -227,8 +228,10 @@ namespace CalendarNotepad
|
|||
return;
|
||||
}
|
||||
try {
|
||||
//System.Diagnostics.Process.Start("https://www.baidu.com/");
|
||||
System.Diagnostics.Process.Start(e.LinkText);
|
||||
Process.Start(new ProcessStartInfo {
|
||||
FileName = e.LinkText,
|
||||
UseShellExecute = true,
|
||||
});
|
||||
}
|
||||
catch(Exception ex) {
|
||||
MessageBox.Show(ex.ToString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user