コード例 #1
0
 /// <summary>
 /// 弹出消息框
 /// </summary>
 /// <param name="caption">标题</param>
 /// <param name="message">消息</param>
 /// <param name="type">类型</param>
 public static DialogResult ShowDialog(string caption, string message, MessageType type, Form owner = null)
 {
     using (MessageBoxForm messageBox = new MessageBoxForm(caption, message, type))
         return(messageBox.ShowDialog(owner));
 }