mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 21:15:18 +00:00
Use Information message box type
Ding may be strange but this process takes a while sometimes
This commit is contained in:
parent
c1e755276d
commit
81c85a9278
1 changed files with 1 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue