1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 |
using
System; using
System.Collections.Generic; using
System.Linq; using
System.Text; using
System.Windows.Forms; namespace
MyCommanHelper { public
class MessageBoxHelper { // Methods public
static void ShowErrorMessage( string
sErr) { MessageBox.Show(sErr, "错误" , MessageBoxButtons.OK, MessageBoxIcon.Error); } public
static void ShowErrorMessage(Exception ex, string
errType) { MessageBox.Show(ex.Message, errType, MessageBoxButtons.OK, MessageBoxIcon.Error); } public
static void ShowInfoMessage( string
sInfo) { MessageBox.Show(sInfo, "提示" , MessageBoxButtons.OK, MessageBoxIcon.Information); } } } |
原文:http://www.cnblogs.com/shenchao/p/3673435.html