示例#1
0
        public virtual bool DoValidate()
        {
            string validateMsg;
            bool   validateResult = SEValidateHelper.ValidateContainerControl(this, out validateMsg);

            if (validateResult == false)
            {
                MessageBox.Show(validateMsg, Language.Current.MessageBoxCaptiton_Message, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(validateResult);
        }
示例#2
0
        public bool SEValidate(out string validateMsg)
        {
            bool   validateResult = true;
            string tabValidateMsg;

            validateMsg = String.Empty;
            foreach (TabPage tabPage in this.TabPages)
            {
                if (SEValidateHelper.ValidateContainerControl(tabPage, out tabValidateMsg) == false)
                {
                    validateMsg   += tabValidateMsg;
                    validateResult = false;
                }
            }
            return(validateResult);
        }
示例#3
0
 public bool SEValidate(out string validateMsg)
 {
     return(SEValidateHelper.ValidateContainerControl(this, out validateMsg));
 }