[Mono-winforms-list] [Patch] CausesValidation handling

Carlos Alberto Cortez calberto.cortez at gmail.com
Wed Mar 25 02:32:25 EDT 2009


On IRC Andreia pointed out the case when a Control is part of the pending
validation chain, and then this Control is removed. So the attached codes
adds the check to look for any control (or children) that could be int the
pending validation chain, and thus need to be removed (this is what .Net
does).

Comments?
Carlos.


2009/2/16 Carlos Alberto Cortez <calberto.cortez at gmail.com>

> Hey,
>
> The attached patch basically adds support for Control.CausesValidation,
> which means that in some scenarios the validation is postponed (when
> CausesValidation if false, basically).
>
> I'm concerned -specially- about the code readibility (it also includes the
> description of the algorithm in the patch). I mention this because I spent
> some time trying to understand this little documented algorithm (AFAIK) and
> want the code to be easily understandable.
>
> As test I used the very complete ones in
> https://bugzilla.novell.com/show_bug.cgi?id=457170 . One test is still
> failing, but that's due to the controls receiving focus/validation when
> closing (which needs to be fixed too, but it's a little different issue).
>
> Carlos.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090325/3a677067/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: causes-validation2.patch
Type: text/x-patch
Size: 6766 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090325/3a677067/attachment-0001.bin 


More information about the Mono-winforms-list mailing list