Beispiel #1
0
        public OrderDetailsBuyArr Filter(CarExtra carExtra)
        {
            OrderDetailsBuyArr orderDetailsBuyArr = new OrderDetailsBuyArr();

            for (int i = 0; i < this.Count; i++)
            {
                OrderDetailsBuy orderDetailsBuy = (this[i] as OrderDetailsBuy);

                if ((carExtra == null) || (orderDetailsBuy.CarExtra.Id == carExtra.Id))
                {
                    orderDetailsBuyArr.Add(orderDetailsBuy);
                }
            }

            return(orderDetailsBuyArr);
        }
Beispiel #2
0
        public OrderDetailsBuyArr Filter(OrderBuy orderBuy)
        {
            OrderDetailsBuyArr orderDetailsBuyArr = new OrderDetailsBuyArr();

            for (int i = 0; i < this.Count; i++)
            {
                OrderDetailsBuy orderDetailsBuy = (this[i] as OrderDetailsBuy);

                if ((orderBuy == null) || (orderDetailsBuy.OrderBuy.Id == orderBuy.Id))
                {
                    orderDetailsBuyArr.Add(orderDetailsBuy);
                }
            }

            return(orderDetailsBuyArr);
        }