public void Describe(DescribeCriterionContext describe) { describe .For("Cart", T("Cart products"), T("Cart products")) .Element("Cart has Products of given type", T("Cart has Products of given type"), T("Cart has Products of given type"), (ctx) => ApplyCriteria(ctx, (b) => b), DisplayTrueCriteria, ProductContentTypeForm.FormName) .Element("Cart doesn't have Products of given type", T("Cart doesn't have Products of given type"), T("Cart doesn't have Products of given type"), (ctx) => ApplyCriteria(ctx, (b) => !b), DisplayFalseCriteria, ProductContentTypeForm.FormName); }
public void Describe(DescribeCriterionContext describe) { describe .For("Destination", T("Destination in territories"), T("Destination in territories")) .Element("Destination in territories", T("Destination in territories"), T("Destination in territories Criterion"), (ctx) => ApplyCriteria(ctx, (b) => b), DisplayTrueCriteria, DestinationTerritoryForm.FormName) .Element("Destination not in territories", T("Destination not in territories"), T("Destination not in territories Criterion"), (ctx) => ApplyCriteria(ctx, (b) => !b), DisplayFalseCriteria, DestinationTerritoryForm.FormName); }