예제 #1
0
        public static void DeRegister(BaseValidator validator, Form hostingForm)
        {
            // Remove this validator from the list of registered validators
            ValidatorCollection validators = (ValidatorCollection)_validators[hostingForm];

            if (validators != null)
            {
                validators.Remove(validator);
                // Remove form bucket if all validators on the form are de-registered
                if (validators.Count == 0)
                {
                    _validators.Remove(hostingForm);
                }
            }
        }
예제 #2
0
 public override void Remove(BaseValidator x)
 {
     lock (this.m_root)
         m_collection.Remove(x);
 }