/// <summary> /// /// </summary> private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e) { if (_SalesOrderHeaderSalesReason != null) { _SalesOrderHeaderSalesReason.Validate(); } }
private void OnSalesOrderHeaderSalesReasonBindingSourceCurrentItemChanged(object sender, System.EventArgs e) { _currentSalesOrderHeaderSalesReason = uxSalesOrderHeaderSalesReasonBindingSource.Current as Entities.SalesOrderHeaderSalesReason; if (_currentSalesOrderHeaderSalesReason != null) { _currentSalesOrderHeaderSalesReason.Validate(); } //_SalesOrderHeaderSalesReason.Validate(); OnCurrentEntityChanged(); }