/// <summary> /// /// </summary> private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e) { if (_CreditCard != null) { _CreditCard.Validate(); } }
private void OnCreditCardBindingSourceCurrentItemChanged(object sender, System.EventArgs e) { _currentCreditCard = uxCreditCardBindingSource.Current as Entities.CreditCard; if (_currentCreditCard != null) { _currentCreditCard.Validate(); } //_CreditCard.Validate(); OnCurrentEntityChanged(); }