void SetControlError(ref bool FirstError, TroposInput iControl) { iControl.HighlightError = true; if (FirstError) { FirstError = false; iControl.Focus(); } }
void SetControlError(ref bool FirstError, TroposInput iControl, bool highlight) { iControl.HighlightError = highlight; if (highlight) { if (FirstError) { FirstError = false; iControl.Focus(); } } }