mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-04 07:08:47 +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) {
|
public static void CreateOkDialog(string title, string errorMessage) {
|
||||||
MessageBox.Show(errorMessage, title, MessageBoxButtons.OK, MessageBoxType.Question);
|
MessageBox.Show(errorMessage, title, MessageBoxButtons.OK, MessageBoxType.Information);
|
||||||
// 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;
|
|
||||||
}
|
}
|
||||||
public static bool CreateConfirmationDialog(string title, string errorMessage) {
|
public static bool CreateConfirmationDialog(string title, string errorMessage) {
|
||||||
DialogResult result = MessageBox.Show(errorMessage, title, MessageBoxButtons.YesNo, MessageBoxType.Question);
|
DialogResult result = MessageBox.Show(errorMessage, title, MessageBoxButtons.YesNo, MessageBoxType.Question);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue