qinjie
2023-11-23 1c0be3112f45f4cb10f2fb41398407a3b4de5bc1
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;
        }
    }
}