using System.Windows.Forms;
namespace FastReport.Utils
{
///
/// Provides the message functions.
///
public static class FRMessageBox
{
///
/// Shows the Message Box with error message.
///
/// The message.
public static void Error(string msg)
{
MessageBox.Show(msg, Res.Get("Messages,Error"), MessageBoxButtons.OK, MessageBoxIcon.Error);
}
///
/// Shows Message Box with confirmation.
///
/// The message.
/// The dialog buttons.
/// The dialog result.
public static DialogResult Confirm(string msg, MessageBoxButtons buttons)
{
return MessageBox.Show(msg, Res.Get("Messages,Confirmation"), buttons, MessageBoxIcon.Question);
}
///
/// Shows information Message Box.
///
/// The message.
public static void Information(string msg)
{
MessageBox.Show(msg, Res.Get("Messages,Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}