public override void SelectOrders(OrderFilter orderFilter, ref List <Order> orders)
 {
     if (orders.Count == 0 && orderFilter.GetCountItemsNexFilter(_nextOrderSelector) == 0)
     {
         // if orderFilter.OrderStatuses.Count == 0 get all orders by OrderDate
         if (orderFilter.OrderStatuses.Count == 0)
         {
             orders.AddRange(orderFilter.GetDefaultOrders());
         }
         else
         {
             orders = GetOrdersByOrderStatus(orderFilter, FactoryRepositoryFactory.GetFactory().OrderRepository.Orders);
         }
     }
     else
     {
         // if OrderStatuses.Count == 0 skip select orders. Filter is disabled.
         if (orderFilter.OrderStatuses.Count > 0)
         {
             if (orders.Count == 0)
             {
                 orders = GetOrdersByOrderStatus(orderFilter, FactoryRepositoryFactory.GetFactory().OrderRepository.Orders);
             }
             else
             {
                 orders = GetOrdersByOrderStatus(orderFilter, orders);
             }
         }
     }
     base.SelectOrders(orderFilter, ref orders);
 }
 public override void SelectOrders(OrderFilter orderFilter, ref List <Order> orders)
 {
     // get all orders by OrderDate
     if (orderFilter.Customers.Count == 0 && orderFilter.OrderStatuses.Count == 0 && orderFilter.Cities.Count == 0)
     {
         orders.AddRange(orderFilter.GetDefaultOrders());
     }
     else
     {
         base.SelectOrders(orderFilter, ref orders);
     }
 }