Exemplo n.º 1
0
 /// <summary>
 /// 显示保存失败的提示
 /// </summary>
 /// <param name="window"></param>
 /// <returns></returns>
 public static DialogResult ShowSaveNG(this All.Window.BaseWindow window)
 {
     return(All.Window.MessageWindow.Show("当前数据保存到数据库失败", "保存失败", MessageBoxButtons.OK, MessageBoxIcon.Error));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 显示具有指定文本的消息框
 /// </summary>
 /// <param name="window"></param>
 /// <param name="text">要在消息框中显示的文本</param>
 /// <param name="title">要在消息框的标题栏中显示的文本</param>
 /// <param name="button">System.Windows.Forms.MessageBoxButtons 值之一,可指定在消息框中显示哪些按钮。</param>
 /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一,它指定在消息框中显示哪个图标。</param>
 /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
 public static DialogResult Show(this All.Window.BaseWindow window, string text)
 {
     return(All.Window.MessageWindow.Show(text));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 显示保存成功的提示
 /// </summary>
 /// <param name="window"></param>
 /// <returns></returns>
 public static DialogResult ShowSaveOK(this All.Window.BaseWindow window)
 {
     return(All.Window.MessageWindow.Show("当前数据已成功保存到数据库", "保存成功", MessageBoxButtons.OK, MessageBoxIcon.Information));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 显示具有指定文本的消息框
 /// </summary>
 /// <param name="window"></param>
 /// <param name="text">要在消息框中显示的文本</param>
 /// <param name="title">要在消息框的标题栏中显示的文本</param>
 /// <param name="button">System.Windows.Forms.MessageBoxButtons 值之一,可指定在消息框中显示哪些按钮。</param>
 /// <param name="icon">System.Windows.Forms.MessageBoxIcon 值之一,它指定在消息框中显示哪个图标。</param>
 /// <returns>System.Windows.Forms.DialogResult 值之一。</returns>
 public static DialogResult Show(this All.Window.BaseWindow window, string text, string title, MessageBoxButtons button)
 {
     return(All.Window.MessageWindow.Show(text, title, button));
 }