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

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 CalendarNotepad.Models;
using Microsoft.VisualBasic; using Microsoft.VisualBasic;
using SqlSugar; using SqlSugar;
using System.Diagnostics;
namespace CalendarNotepad namespace CalendarNotepad
{ {
@ -227,8 +228,10 @@ namespace CalendarNotepad
return; return;
} }
try { try {
//System.Diagnostics.Process.Start("https://www.baidu.com/"); Process.Start(new ProcessStartInfo {
System.Diagnostics.Process.Start(e.LinkText); FileName = e.LinkText,
UseShellExecute = true,
});
} }
catch(Exception ex) { catch(Exception ex) {
MessageBox.Show(ex.ToString()); MessageBox.Show(ex.ToString());