public static void SetValidForValidationParent(this IWidgetWithValidProperty widget, bool value) { if (widget.Visible) { widget.Valid = value; } }
public static bool ValidateWidget(IWidgetWithValidProperty widget) { return((widget != null) && widget.Visible); }
public static bool GetValidForValidationParent(this IWidgetWithValidProperty widget) { return(widget.Valid || !widget.Visible); }