コード例 #1
0
        private void OnShoppingCartItemBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
        {
            _currentShoppingCartItem = uxShoppingCartItemBindingSource.Current as Entities.ShoppingCartItem;

            if (_currentShoppingCartItem != null)
            {
                _currentShoppingCartItem.Validate();
            }
            //_ShoppingCartItem.Validate();
            OnCurrentEntityChanged();
        }
コード例 #2
0
		private void OnShoppingCartItemBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentShoppingCartItem = uxShoppingCartItemBindingSource.Current as Entities.ShoppingCartItem;
			
			if (_currentShoppingCartItem != null)
			{
				_currentShoppingCartItem.Validate();
			}
			//_ShoppingCartItem.Validate();
			OnCurrentEntityChanged();
		}