v1.08 — Custom Fluent confirmation dialog, replace all MessageBox
- 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) <noreply@anthropic.com>
This commit is contained in:
@@ -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<bool> 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";
|
||||
|
||||
Reference in New Issue
Block a user