Use Information message box type

Ding may be strange but this process takes a while sometimes
This commit is contained in:
Dagg 2022-09-12 18:03:33 -07:00
parent c1e755276d
commit 81c85a9278

View file

@ -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);