public Expression <Func <Playerstatistic, bool> > GetFilterPredicate() { if (!HoleCardsCollection.Any(x => !x.IsChecked)) { return(null); } var checkedHoleCards = HoleCardsCollection.Where(x => x.IsChecked); var holeCardsPredicate = PredicateBuilder.Create <Playerstatistic>(x => FilterHelpers.CheckHoleCards(x.Cards, checkedHoleCards)); return(holeCardsPredicate); }
public void ResetHoleCardsCollection() { HoleCardsCollection.Where(x => !x.IsChecked).ToList().ForEach(x => x.IsChecked = true); }