From f41b821d2422d2e890a65075da26f6f99704df96 Mon Sep 17 00:00:00 2001 From: hariel1985 Date: Tue, 31 Mar 2026 06:36:13 +0200 Subject: [PATCH] =?UTF-8?q?v1.08=20=E2=80=94=20Custom=20Fluent=20confirmat?= =?UTF-8?q?ion=20dialog,=20replace=20all=20MessageBox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New ConfirmDialog overlay with dark backdrop, rounded card, shadow - Warning/Question/Error icon types with accent colors - Replaced all MessageBox.Show calls (RemovePage, PreInstallCheck, Troubleshoot) - Click outside dialog = cancel Co-Authored-By: Claude Opus 4.6 (1M context) --- InstaSoftOfficeTool.csproj | 6 +-- MainWindow.xaml | 9 +++- MainWindow.xaml.cs | 8 ++++ Pages/ConfirmDialog.xaml | 41 +++++++++++++++++ Pages/ConfirmDialog.xaml.cs | 75 +++++++++++++++++++++++++++++++ Pages/PreInstallCheckPage.xaml.cs | 7 +++ Pages/RemovePage.xaml.cs | 7 +-- Pages/TroubleshootPage.xaml.cs | 14 +++--- 8 files changed, 154 insertions(+), 13 deletions(-) create mode 100644 Pages/ConfirmDialog.xaml create mode 100644 Pages/ConfirmDialog.xaml.cs diff --git a/InstaSoftOfficeTool.csproj b/InstaSoftOfficeTool.csproj index 299c206..b6e3152 100644 --- a/InstaSoftOfficeTool.csproj +++ b/InstaSoftOfficeTool.csproj @@ -9,9 +9,9 @@ InstaSoft Zrt. InstaSoft Office Tool Copyright (c) InstaSoft Zrt. 2026 - 1.0.7 - 1.0.7.0 - 1.0.7.0 + 1.0.8 + 1.0.8.0 + 1.0.8.0 app.manifest latest diff --git a/MainWindow.xaml b/MainWindow.xaml index 6ddb77f..eefdfca 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -1,6 +1,7 @@ + + @@ -42,7 +45,7 @@ Foreground="{StaticResource TextSecondaryBrush}" Margin="0,-2,0,0"/> - @@ -70,5 +73,9 @@ + + + + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 6b923b9..5ab2625 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; @@ -194,6 +195,13 @@ namespace InstaSoftOfficeTool BtnNext.Click += (s, e) => Close(); } + public Task ConfirmAsync(string title, string message, + string confirmText = "Igen", string cancelText = "M\u00e9gse", + DialogType type = DialogType.Warning) + { + return Dialog.ShowAsync(title, message, confirmText, cancelText, type); + } + public void ShowBackToHomeButton() { BtnBack.Content = "\u2190 F\u0151oldal"; diff --git a/Pages/ConfirmDialog.xaml b/Pages/ConfirmDialog.xaml new file mode 100644 index 0000000..64124d7 --- /dev/null +++ b/Pages/ConfirmDialog.xaml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + +