Exemple #1
0
        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);
        }
Exemple #2
0
 public void ResetHoleCardsCollection()
 {
     HoleCardsCollection.Where(x => !x.IsChecked).ToList().ForEach(x => x.IsChecked = true);
 }