Provides arguments for a validation event
Inheritance: System.EventArgs
Ejemplo n.º 1
0
 /// <summary>
 /// Delegate invoking of validation method.
 /// </summary>
 /// <param name="e"></param>
 internal protected virtual void OnCustomValidationMethod(CustomValidationEventArgs e)
 {
     if (this.CustomValidationMethod != null)
     {
         this.CustomValidationMethod(this, e);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Perform Custom Validation on specific control.
        /// </summary>
        private ValidationRule CustomValidate(IControlHabanero ctrl)
        {
            ValidationRule        returnRule = new ValidationRule();
            List <ValidationRule> vr         = _validationRules[ctrl];

            vr.ForEach(delegate(ValidationRule obj)
            {
                if (obj != null)
                {
                    CustomValidationEventArgs e = new CustomValidationEventArgs(ctrl.Text, obj);
                    obj.OnCustomValidationMethod(e);
                }
                returnRule = obj;
            });
            return(returnRule);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Delegate invoking of validation method.
		/// </summary>
		/// <param name="e"></param>
		internal protected virtual void OnCustomValidationMethod(CustomValidationEventArgs e)
		{
			if (this.CustomValidationMethod != null)
				this.CustomValidationMethod(this, e);
		}
		/// <summary>
		/// Perform Custom Validation on specific control.
		/// </summary>
        private ValidationRule CustomValidate(IControlHabanero ctrl)
		{
            ValidationRule returnRule = new ValidationRule();
            List<ValidationRule> vr = _validationRules[ctrl];
            vr.ForEach(delegate(ValidationRule obj)
            {
                if (obj != null)
                {
                    CustomValidationEventArgs e = new CustomValidationEventArgs(ctrl.Text, obj);
                    obj.OnCustomValidationMethod(e);
                }
                returnRule = obj;
            });
		    return returnRule;
		}