新增支持文本中点击打开超链接

This commit is contained in:
Falcon 2024-07-31 14:15:34 +08:00
parent 1d1716ca4e
commit a1e2ba1c9f

View File

@ -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());