From 68e712a3a904ae166535fd955781b2afab691af9 Mon Sep 17 00:00:00 2001 From: noberumotto Date: Tue, 14 Dec 2021 01:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E4=BA=8E=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=A1=B9=E7=9B=AE=E7=9B=B8=E5=85=B3=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/ViewModels/SettingPageVM.cs | 8 ++++++++ UI/Views/SettingPage.xaml | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/UI/ViewModels/SettingPageVM.cs b/UI/ViewModels/SettingPageVM.cs index 943e75a..bb66ad5 100644 --- a/UI/ViewModels/SettingPageVM.cs +++ b/UI/ViewModels/SettingPageVM.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; +using UI.Controls; using UI.Models; namespace UI.ViewModels @@ -16,15 +17,22 @@ namespace UI.ViewModels { private ConfigModel config; private readonly IAppConfig appConfig; + public Command OpenURL { get; set; } public SettingPageVM(IAppConfig appConfig) { this.appConfig = appConfig; + OpenURL = new Command(new Action(OnOpenURL)); Init(); } + private void OnOpenURL(object obj) + { + Process.Start(new ProcessStartInfo(obj.ToString())); + } + private void Init() { config = appConfig.GetConfig(); diff --git a/UI/Views/SettingPage.xaml b/UI/Views/SettingPage.xaml index 1bfd1f3..2c37006 100644 --- a/UI/Views/SettingPage.xaml +++ b/UI/Views/SettingPage.xaml @@ -13,6 +13,7 @@ + @@ -48,7 +49,12 @@ - + + https://github.com/Planshit/Tai + + + https://github.com/Planshit/Tai/discussions + -- GitLab