Files
UVtools/UVtools.GUI/Extensions/GUIExtensions.cs
T
Tiago Conceição dcf85cb509 Add layer import GUI
2020-09-07 05:11:44 +01:00

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