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

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