コード例 #1
0
        /// <summary>
        /// ÑéÖ¤¿Ø¼þÊäÈë
        /// </summary>
        /// <returns></returns>
        public virtual bool DoValidate()
        {
            string validateMsg;
            bool   validateResult = ShengValidateHelper.ValidateContainerControl(this, out validateMsg);

            if (validateResult == false)
            {
                MessageBox.Show(validateMsg, Language.Current.MessageBoxCaptiton_Message, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(validateResult);
        }
コード例 #2
0
        /// <summary>
        /// 验证控件
        /// </summary>
        /// <param name="validateMsg"></param>
        /// <returns></returns>
        public bool SEValidate(out string validateMsg)
        {
            bool   validateResult = true;
            string tabValidateMsg;

            validateMsg = String.Empty;

            foreach (TabPage tabPage in this.TabPages)
            {
                if (ShengValidateHelper.ValidateContainerControl(tabPage, out tabValidateMsg) == false)
                {
                    validateMsg   += tabValidateMsg;
                    validateResult = false;
                }
            }

            return(validateResult);
        }
コード例 #3
0
 /// <summary>
 /// 验证控件
 /// </summary>
 /// <param name="validateMsg"></param>
 /// <returns></returns>
 public bool SEValidate(out string validateMsg)
 {
     return(ShengValidateHelper.ValidateContainerControl(this, out validateMsg));
 }