using System.Windows.Forms;

namespace Elfisa.UI.Dialogs
{
    public static class ModernMessageBox
    {
        public static DialogResult Show(IWin32Window owner, string title, string message, bool showCancel = false)
        {
            var buttons = showCancel ? ModernMessageButtons.YesNoCancel : ModernMessageButtons.Ok;
            return Show(owner, title, message, buttons);
        }

        public static DialogResult Show(IWin32Window owner, string title, string message, ModernMessageButtons buttons)
        {
            using (var form = new ModernMessageForm(title, message, buttons))
            {
                return form.ShowDialog(owner);
            }
        }
    }
}
