+2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
+
+ * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
+ the build.
+
2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
* ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
{
return base.ValidateChildren (validationConstraints);
}
+#else
+ private bool ValidateChildren ()
+ {
+ return ValidateChildren (this);
+ }
+
+ private bool ValidateChildren (Control c)
+ {
+ if (!ValidateControl (c))
+ return false;
+
+ foreach (Control child in c.Controls) {
+ if (!ValidateChildren (child))
+ return false;
+ }
+
+ return true;
+ }
+
+ private bool ValidateControl (Control c)
+ {
+ CancelEventArgs e = new CancelEventArgs ();
+ c.FireValidating (e);
+ if (e.Cancel)
+ return false;
+ c.FireValidated ();
+ return true;
+ }
#endif
#endregion // Public Instance Methods