新增支持文本中点击打开超链接
This commit is contained in:
parent
1d1716ca4e
commit
a1e2ba1c9f
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user