Techblox Mod Manager / Launcher
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
776B

  1. using System.Windows.Forms;
  2. namespace GCMM
  3. {
  4. public static class DialogUtils
  5. {
  6. public static void ShowInfo(string message, string title) =>
  7. MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
  8. public static void ShowError(string message, string title) =>
  9. MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
  10. public static void ShowWarning(string message, string title) =>
  11. MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Warning);
  12. public static bool ShowYesNoQuestion(string message, string title) =>
  13. MessageBox.Show(message, title, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes;
  14. }
  15. }