From 9341c2196307091c8bbd34029d17c45b0c960faf Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 9 Apr 2022 02:31:52 +0300 Subject: [PATCH] Add clickable links to usage guide in GUI --- .../ViewModels/Components/DashboardViewModel.cs | 6 ++++++ .../Views/Components/DashboardView.xaml | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs index 8a4145e..884d594 100644 --- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs @@ -227,4 +227,10 @@ public class DashboardViewModel : PropertyChangedBase IsBusy = false; } } + + public void OpenDiscord() => + ProcessEx.StartShellExecute("https://discord.com/app"); + + public void OpenDiscordDeveloperPortal() => + ProcessEx.StartShellExecute("https://discord.com/developers/applications"); } \ No newline at end of file diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml index cdf5595..6b2d32d 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml @@ -133,7 +133,10 @@ - + @@ -148,7 +151,9 @@ - + + + @@ -195,7 +200,10 @@ - + + + +