From 86f87633ec55c927ed113048efff0aa22b79945f Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Mon, 16 Oct 2023 19:52:37 +0300 Subject: [PATCH] Preparing Help Dialog --- src/Library/Sucrose.Memory/Readonly.cs | 6 ++++ .../ViewModels/Windows/MainWindowViewModel.cs | 2 +- .../Views/Controls/OtherHelp.xaml | 17 +++++----- .../Views/Controls/OtherHelp.xaml.cs | 31 ++++++++++++++++--- .../Sucrose.Commandog/Helper/Arguments.cs | 9 ++++++ .../Enum/CommandsType.cs | 3 ++ .../Locales/Locale.xaml | 12 +++---- .../OtherHelp/Portal.OtherHelp.DE.xaml | 19 ++++++++++-- .../OtherHelp/Portal.OtherHelp.EN.xaml | 19 ++++++++++-- .../OtherHelp/Portal.OtherHelp.ES.xaml | 19 ++++++++++-- .../OtherHelp/Portal.OtherHelp.FR.xaml | 19 ++++++++++-- .../OtherHelp/Portal.OtherHelp.PL.xaml | 19 ++++++++++-- .../OtherHelp/Portal.OtherHelp.TR.xaml | 15 +++++++++ 13 files changed, 161 insertions(+), 29 deletions(-) diff --git a/src/Library/Sucrose.Memory/Readonly.cs b/src/Library/Sucrose.Memory/Readonly.cs index 754512b42..39f9fcdc4 100644 --- a/src/Library/Sucrose.Memory/Readonly.cs +++ b/src/Library/Sucrose.Memory/Readonly.cs @@ -112,14 +112,20 @@ public static class Readonly public static readonly string KeyYouTube = $"https://www.youtube.com/watch?v=kRyML8axJxA"; + public static readonly string OfficialWebsite = $"https://github.com/{Owner}/{Repository}"; + public static readonly string BackgroundogMutex = "{Sucrose-Wallpaper-Engine-Backgroundog}"; public static readonly string WikiWebsite = $"https://github.com/{Owner}/{Repository}/wiki"; public static readonly string StoreWebsite = $"https://github.com/{Owner}/{StoreRepository}"; + public static readonly string RepositoryWebsite = $"https://github.com/{Owner}/{Repository}"; + public static readonly string DesktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); + public static readonly string DiscussionsWebsite = $"https://github.com/{Owner}/{Repository}/discussions"; + public static readonly string ReportWebsite = $"https://github.com/{Owner}/{Repository}/issues/new/choose"; public static readonly string DownloadWebsite = $"https://github.com/{Owner}/{Repository}/releases/latest"; diff --git a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs index 5e08196ed..e7b7c7735 100644 --- a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs +++ b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs @@ -15,8 +15,8 @@ using SPEIL = Sucrose.Portal.Extension.ImageLoader; using SPMI = Sucrose.Portal.Manage.Internal; using SPMM = Sucrose.Portal.Manage.Manager; -using SPVCOH = Sucrose.Portal.Views.Controls.OtherHelp; using SPVCDP = Sucrose.Portal.Views.Controls.DisplayPreferences; +using SPVCOH = Sucrose.Portal.Views.Controls.OtherHelp; using SSCHA = Sucrose.Shared.Core.Helper.Architecture; using SSCHF = Sucrose.Shared.Core.Helper.Framework; using SSCHM = Sucrose.Shared.Core.Helper.Memory; diff --git a/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml index 03fea7091..074371028 100644 --- a/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml +++ b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml @@ -9,6 +9,7 @@ xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" CloseButtonText="{DynamicResource Portal.OtherHelp.Close}" Title="{DynamicResource Portal.OtherHelp.Title}" + Loaded="ContentDialog_Loaded" DialogMaxWidth="750" mc:Ignorable="d"> @@ -16,8 +17,8 @@