/// <summary> /// 静态方法 模拟MESSAGEBOX.Show方法 /// </summary> /// <param name="title">标题</param> /// <param name="msg">消息</param> /// <returns></returns> public static bool?Show(string title) { var msgBox = new MessageBoxInput(); msgBox.Title = title; return(msgBox.ShowDialog()); }
/// <summary> /// 静态方法 模拟MESSAGEBOX.Show方法 /// </summary> /// <param name="title">标题</param> /// <param name="msg">消息</param> /// <returns></returns> public static bool? Show(string title) { var msgBox = new MessageBoxInput(); msgBox.Title = title; return msgBox.ShowDialog(); }