using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace Ella.ToolKit { public sealed class MsgHelper : Singleton<MsgHelper> { /// <summary> /// 消息提示 /// <para/>Author : AnDequan /// <para/>Date : 2010-12-23 /// </summary> /// <param name="info">提示消息</param> /// <returns>消息结果</returns> public DialogResult InformationOK(string info) { return MessageBox.Show(info, "消息", MessageBoxButtons.OK, MessageBoxIcon.Information); } /// <summary> /// 消息提示 /// <para/>Author : AnDequan /// <para/>Date : 2010-12-23 /// </summary> /// <param name="info">提示消息</param> /// <returns>消息结果</returns> public DialogResult InformationYesNo(string info) { return MessageBox.Show(info, "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Information); } /// <summary> /// 消息提示 /// <para/>Author : AnDequan /// <para/>Date : 2010-12-23 /// </summary> /// <param name="info">提示消息</param> /// <returns>消息结果</returns> public DialogResult InformationYesNoCancel(string info) { return MessageBox.Show(info, "消息", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information); } /// <summary> /// 消息提示 /// <para/>Author : AnDequan /// <para/>Date : 2010-12-23 /// </summary> /// <param name="info">提示消息</param> /// <returns>消息结果</returns> public DialogResult InformationOKCancel(string info) { return MessageBox.Show(info, "消息", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); } #region User - Defined Private Function #endregion } }