public static void Confirm(string msg, string tittle = "请选择", Action <DialogResult> func = null) { var dr = new JMsgBox(msg, tittle, Properties.Resources.msgbox_question, true).ShowDialog(); if (func != null) { func(dr); } }
public static string Input(string title = "请输入内容") { var str = ""; var mb = new JMsgBox(title); mb.ShowDialog(); str = mb.InputStr; mb.Close(); return(str); }