From a1e2ba1c9fb7b4beea9d994a8f013d10ba0f49a4 Mon Sep 17 00:00:00 2001 From: Falcon <12919280+falconfly@user.noreply.gitee.com> Date: Wed, 31 Jul 2024 14:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E6=8C=81=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E7=82=B9=E5=87=BB=E6=89=93=E5=BC=80=E8=B6=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CalendarNotepad/WorkMain.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CalendarNotepad/WorkMain.cs b/CalendarNotepad/WorkMain.cs index 2886898..b08be98 100644 --- a/CalendarNotepad/WorkMain.cs +++ b/CalendarNotepad/WorkMain.cs @@ -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());