DepartmentProject/DepartmentPortal/Common/DesktopTools/Helpers/DialogHelper.cs

16 lines
388 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DesktopTools.Helpers
{
public static class DialogHelper
{
public static DialogResult MessageQuestion(string message, string title) =>
MessageBox.Show(message, title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}
}