From d4e20969809b5c6c7391c91f7fcc24108e4e6da0 Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Mon, 16 Oct 2023 19:16:41 +0300 Subject: [PATCH] Preparing Help Dialog --- .../ViewModels/Windows/MainWindowViewModel.cs | 17 +++++ .../Views/Controls/OtherHelp.xaml | 75 +++++++++++++++++++ .../Views/Controls/OtherHelp.xaml.cs | 48 ++++++++++++ .../Views/Windows/MainWindow.xaml | 28 ++++++- .../Views/Windows/MainWindow.xaml.cs | 10 ++- .../OtherAbout/Portal.OtherAbout.DE.xaml | 8 ++ .../OtherAbout/Portal.OtherAbout.EN.xaml | 8 ++ .../OtherAbout/Portal.OtherAbout.ES.xaml | 8 ++ .../OtherAbout/Portal.OtherAbout.FR.xaml | 8 ++ .../OtherAbout/Portal.OtherAbout.PL.xaml | 8 ++ .../OtherAbout/Portal.OtherAbout.TR.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.DE.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.EN.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.ES.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.FR.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.PL.xaml | 8 ++ .../OtherHelp/Portal.OtherHelp.TR.xaml | 8 ++ .../Portal/Controls/Portal.Controls.DE.xaml | 2 + .../Portal/Controls/Portal.Controls.EN.xaml | 2 + .../Portal/Controls/Portal.Controls.ES.xaml | 2 + .../Portal/Controls/Portal.Controls.FR.xaml | 2 + .../Portal/Controls/Portal.Controls.PL.xaml | 2 + .../Portal/Controls/Portal.Controls.TR.xaml | 2 + .../MainWindow/Portal.MainWindow.DE.xaml | 7 ++ .../MainWindow/Portal.MainWindow.EN.xaml | 7 ++ .../MainWindow/Portal.MainWindow.ES.xaml | 7 ++ .../MainWindow/Portal.MainWindow.FR.xaml | 7 ++ .../MainWindow/Portal.MainWindow.PL.xaml | 7 ++ .../MainWindow/Portal.MainWindow.TR.xaml | 7 ++ .../Sucrose.Shared.Resources.projitems | 48 ++++++++++++ 30 files changed, 373 insertions(+), 3 deletions(-) create mode 100644 src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml create mode 100644 src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml.cs create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.DE.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.EN.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.ES.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.FR.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.PL.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherAbout/Portal.OtherAbout.TR.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.DE.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.EN.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.ES.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.FR.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.PL.xaml create mode 100644 src/Shared/Sucrose.Shared.Resources/Locales/Portal/Controls/OtherHelp/Portal.OtherHelp.TR.xaml diff --git a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs index 0bdb4f891..5e08196ed 100644 --- a/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs +++ b/src/Portal/Sucrose.Portal/ViewModels/Windows/MainWindowViewModel.cs @@ -15,6 +15,7 @@ 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 SSCHA = Sucrose.Shared.Core.Helper.Architecture; using SSCHF = Sucrose.Shared.Core.Helper.Framework; @@ -202,6 +203,22 @@ private void OnChangeTheme() } } + [RelayCommand] + private async Task OnOtherHelp() + { + SPVCOH OtherHelp = new(); + + await OtherHelp.ShowAsync(); + + OtherHelp.Dispose(); + } + + [RelayCommand] + private async Task OnOtherAbout() + { + + } + [RelayCommand] private async Task OnDisplayPreferences() { diff --git a/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml new file mode 100644 index 000000000..03fea7091 --- /dev/null +++ b/src/Portal/Sucrose.Portal/Views/Controls/OtherHelp.xaml @@ -0,0 +1,75 @@ + + + +