From 81c85a92784218f3526a74afc6a41824aa7f2271 Mon Sep 17 00:00:00 2001 From: Dagg Date: Mon, 12 Sep 2022 18:03:33 -0700 Subject: [PATCH] Use Information message box type Ding may be strange but this process takes a while sometimes --- UnionPatcher.Gui/Gui.cs | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/UnionPatcher.Gui/Gui.cs b/UnionPatcher.Gui/Gui.cs index 91fe3ba..808094f 100644 --- a/UnionPatcher.Gui/Gui.cs +++ b/UnionPatcher.Gui/Gui.cs @@ -10,40 +10,7 @@ public static class Gui { } public static void CreateOkDialog(string title, string errorMessage) { - MessageBox.Show(errorMessage, title, MessageBoxButtons.OK, MessageBoxType.Question); - // DynamicLayout layout = new(); - // Button button; - - // layout.Spacing = new Size(5, 5); - // layout.MinimumSize = new Size(350, 100); - - // layout.BeginHorizontal(); - // layout.Add(new Label { - // Text = errorMessage, - // }); - - // layout.BeginHorizontal(); - // layout.BeginVertical(); - // layout.Add(null); - // layout.Add(button = new Button { - // Text = "OK", - // }); - - // layout.EndVertical(); - // layout.EndHorizontal(); - // layout.EndHorizontal(); - - // Dialog dialog = new() { - // Content = layout, - // Padding = new Padding(10, 10, 10, 10), - // Title = title, - // }; - - // button.Click += delegate { - // dialog.Close(); - // }; - - // return dialog; + MessageBox.Show(errorMessage, title, MessageBoxButtons.OK, MessageBoxType.Information); } public static bool CreateConfirmationDialog(string title, string errorMessage) { DialogResult result = MessageBox.Show(errorMessage, title, MessageBoxButtons.YesNo, MessageBoxType.Question);