From 62f63ef63da21868b5b7174c4d14795d6d64bda6 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 1 Jul 2024 11:07:21 +0200 Subject: [PATCH] UpdateDialog: Add Link to Changelog --- Elwig/Dialogs/UpdateDialog.xaml | 3 ++- Elwig/Dialogs/UpdateDialog.xaml.cs | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Elwig/Dialogs/UpdateDialog.xaml b/Elwig/Dialogs/UpdateDialog.xaml index e6d2051..570c656 100644 --- a/Elwig/Dialogs/UpdateDialog.xaml +++ b/Elwig/Dialogs/UpdateDialog.xaml @@ -9,7 +9,8 @@ - Version 0.0.0 von Elwig ist verfügbar! + Version 0.0.0 von Elwig ist verfügbar! + (Änderungen) Soll das Update heruntergeladen und installiert werden? (ca. 100 MB) Achtung: Elwig wird dabei geschlossen! diff --git a/Elwig/Dialogs/UpdateDialog.xaml.cs b/Elwig/Dialogs/UpdateDialog.xaml.cs index 2f8a1b6..84d22c9 100644 --- a/Elwig/Dialogs/UpdateDialog.xaml.cs +++ b/Elwig/Dialogs/UpdateDialog.xaml.cs @@ -5,6 +5,7 @@ using System.IO; using System.Net.Http; using System.Threading.Tasks; using System.Windows; +using System.Windows.Navigation; namespace Elwig.Dialogs { public partial class UpdateDialog : Window { @@ -43,5 +44,12 @@ namespace Elwig.Dialogs { Process.Start(fileName); } + + private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) { + Process.Start(new ProcessStartInfo { + FileName = e.Uri.ToString(), + UseShellExecute = true, + }); + } } }