コード例 #1
0
ファイル: JMsgBox.cs プロジェクト: liuzhonglei/JadeUI
        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);
            }
        }
コード例 #2
0
ファイル: JMsgBox.cs プロジェクト: liuzhonglei/JadeUI
        public static string Input(string title = "请输入内容")
        {
            var str = "";
            var mb  = new JMsgBox(title);

            mb.ShowDialog();
            str = mb.InputStr;
            mb.Close();
            return(str);
        }