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; } } }