Example #1
0
        private bool OnPropertyError(string PropertyName, ValidationAttribute Attr)
        {
            PropertyErrorEventArgs e = new PropertyErrorEventArgs(PropertyName, Attr);
            var Handler = PropertyError;

            if (Handler != null)
            {
                Handler(this, e);
            }
            return(!e.Cancel);
        }
 private bool OnPropertyError(string PropertyName, ValidationAttribute Attr)
 {
     PropertyErrorEventArgs e = new PropertyErrorEventArgs(PropertyName, Attr);
     var Handler = PropertyError;
     if (Handler != null)
         Handler(this, e);
     return !e.Cancel;
 }