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:
@@ -194,11 +194,12 @@ namespace InstaSoftOfficeTool.Pages
|
||||
var btn = (Button)sender;
|
||||
var last5 = (string)btn.Tag;
|
||||
|
||||
var result = MessageBox.Show(
|
||||
bool confirmed = await _main.ConfirmAsync(
|
||||
"Kulcs elt\u00e1vol\u00edt\u00e1sa",
|
||||
"Biztosan el szeretn\u00e9 t\u00e1vol\u00edtani a *****-" + last5 + " kulcsot?",
|
||||
"Meger\u0151s\u00edt\u00e9s", MessageBoxButton.YesNo, MessageBoxImage.Question);
|
||||
"Elt\u00e1vol\u00edt\u00e1s", "M\u00e9gse", DialogType.Question);
|
||||
|
||||
if (result != MessageBoxResult.Yes) return;
|
||||
if (!confirmed) return;
|
||||
|
||||
btn.IsEnabled = false;
|
||||
btn.Content = "...";
|
||||
@@ -223,12 +224,13 @@ namespace InstaSoftOfficeTool.Pages
|
||||
|
||||
private async void BtnRemoveAll_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var result = MessageBox.Show(
|
||||
bool confirmed = await _main.ConfirmAsync(
|
||||
"\u00d6sszes kulcs elt\u00e1vol\u00edt\u00e1sa",
|
||||
"Biztosan el szeretn\u00e9 t\u00e1vol\u00edtani az \u00f6sszes telep\u00edtett term\u00e9kkulcsot (" + _entries.Count + " db)?\n\n" +
|
||||
"Ez nem t\u00f6r\u00f6l adatot, csak az aktiv\u00e1ci\u00f3s \u00e1llapotot \u00e1ll\u00edtja vissza.",
|
||||
"Meger\u0151s\u00edt\u00e9s", MessageBoxButton.YesNo, MessageBoxImage.Warning);
|
||||
"\u00d6sszes elt\u00e1vol\u00edt\u00e1sa", "M\u00e9gse");
|
||||
|
||||
if (result != MessageBoxResult.Yes) return;
|
||||
if (!confirmed) return;
|
||||
|
||||
BtnRemoveAll.IsEnabled = false;
|
||||
BtnRefresh.IsEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user