lixiaojun
2024-07-29 72d1856d8097fa55e54e1ed4cc1ae06912f3e57e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace Hydro.CommonBase
{
    public class message
    {
        public static bool show(string caption, string content, MessageBoxButtons boxButtons = MessageBoxButtons.OKCancel)
        {
            var result = MessageBox.Show(content, caption, boxButtons, MessageBoxIcon.Information);
            if (result == DialogResult.OK || result == DialogResult.Yes)
                return true;
            else
                return false;
        }
    }
}