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