/// <summary>バッチ・チェック処理</summary>
    protected void btnCheckText_Click(object sender, EventArgs e)
    {
        // 一括チェック処理
        List <CheckResult> rets = new List <CheckResult>();

        if (CmnCheckFunction.HasErrors(this, rets))
        {
            foreach (CheckResult ret in rets)
            {
                this.TextBox1.Text += ret.CtrlName + "\r\n";
                foreach (string s in ret.CheckErrorInfo)
                {
                    this.TextBox1.Text += "・" + s + "\r\n";
                }
            }
        }
    }
Beispiel #2
0
        /// <summary>一括チェックのテスト</summary>
        private void button1_Click(object sender, EventArgs e)
        {
            string ret = "";

            List <CheckResult> lcr = new List <CheckResult>();

            if (CmnCheckFunction.HasErrors(this, lcr))
            {
                foreach (CheckResult cr in lcr)
                {
                    ret += cr.CtrlName + "\r\n";
                    foreach (string checkErrorInfo in cr.CheckErrorInfo)
                    {
                        ret += "・" + checkErrorInfo + "\r\n";
                    }
                    ret += "\r\n";
                }
            }

            MessageBox.Show(ret);
        }