终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.SCADAControl.Windows
  7. {
  8. /// <summary>
  9. /// 消息提示框
  10. /// </summary>
  11. public class MyMessageBoxViewModel
  12. {
  13. /// <summary>
  14. /// 提示对话框
  15. /// </summary>
  16. /// <param name="msg">消息内容</param>
  17. public static void ShowMessageBoxInfo(string msg)
  18. {
  19. new MyMessageBox(MessageBoxStyle.info, msg).ShowDialog();
  20. }
  21. /// <summary>
  22. /// 错误对话框
  23. /// </summary>
  24. /// <param name="msg">消息内容</param>
  25. public static void ShowMessageBoxError(string msg)
  26. {
  27. new MyMessageBox(MessageBoxStyle.error, msg).ShowDialog();
  28. }
  29. /// <summary>
  30. /// 询问对话框
  31. /// </summary>
  32. /// <param name="msg">消息内容</param>
  33. /// <returns></returns>
  34. public static bool? ShowMessageBoxQuestion(string msg)
  35. {
  36. return new MyMessageBox(MessageBoxStyle.question, msg).ShowDialog();
  37. }
  38. }
  39. }