mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
22 lines
869 B
C#
22 lines
869 B
C#
/*
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* Version 3, 19 November 2007
|
|
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
* of this license document, but changing it is not allowed.
|
|
*/
|
|
|
|
using System.Windows.Forms;
|
|
|
|
namespace UVtools.Core.Extensions
|
|
{
|
|
public static class GUIExtensions
|
|
{
|
|
public static DialogResult MessageErrorBox(string title, string message, MessageBoxButtons buttons = MessageBoxButtons.OK) =>
|
|
MessageBox.Show(message, title, buttons, MessageBoxIcon.Error);
|
|
|
|
public static DialogResult MessageQuestionBox(string title, string message, MessageBoxButtons buttons = MessageBoxButtons.YesNo) =>
|
|
MessageBox.Show(message, title, buttons, MessageBoxIcon.Question);
|
|
}
|
|
}
|