public bool?HasBeenFiltered(IFilterRow row)
            {
                if (row == null)
                {
                    return(false);
                }
                IFilterValue upc = row.GetColumn(VariantBarcode);

                if (upc == null)
                {
                    return(false);
                }

                row.RecommendedAmazonUk = RecommendedAmazonUkRowIds.Contains(upc.Value);
                row.RecommendedAmazonUs = RecommendedAmazonUsRowIds.Contains(upc.Value);
                row.RecommendedeBayUs   = RecommendedeBayUsRowIds.Contains(upc.Value);
                row.Recommended         = RecommendedRowIds.Contains(upc.Value);

                return(row.Recommended);
            }
 public void RemoveExcludedRows(CsvFile products)
 {
     foreach (CsvRow row in products.Rows.Where(r => r.ExcludeMe))
     {
         IFilterValue value = row.GetColumn(Upc);
         if (RecommendedRowIds.Contains(value.Value) == true)
         {
             RecommendedRowIds.Remove(value.Value);
         }
         if (RecommendedAmazonUsRowIds.Contains(value.Value) == true)
         {
             RecommendedAmazonUsRowIds.Remove(value.Value);
         }
         if (RecommendedAmazonUkRowIds.Contains(value.Value) == true)
         {
             RecommendedAmazonUkRowIds.Remove(value.Value);
         }
         if (RecommendedeBayUsRowIds.Contains(value.Value) == true)
         {
             RecommendedeBayUsRowIds.Remove(value.Value);
         }
     }
 }