|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.SCADAControl.Windows
- {
- /// <summary>
- /// 消息提示框
- /// </summary>
- public class MyMessageBoxViewModel
- {
- /// <summary>
- /// 提示对话框
- /// </summary>
- /// <param name="msg">消息内容</param>
- public static void ShowMessageBoxInfo(string msg)
- {
- new MyMessageBox(MessageBoxStyle.info, msg).ShowDialog();
- }
-
- /// <summary>
- /// 错误对话框
- /// </summary>
- /// <param name="msg">消息内容</param>
- public static void ShowMessageBoxError(string msg)
- {
- new MyMessageBox(MessageBoxStyle.error, msg).ShowDialog();
- }
-
- /// <summary>
- /// 询问对话框
- /// </summary>
- /// <param name="msg">消息内容</param>
- /// <returns></returns>
- public static bool? ShowMessageBoxQuestion(string msg)
- {
- return new MyMessageBox(MessageBoxStyle.question, msg).ShowDialog();
- }
- }
- }
|