Ejemplo n.º 1
0
 private void ResetHandGridCollectionTo(IEnumerable <OmahaHandGridItem> collection)
 {
     foreach (var item in collection)
     {
         var cur = HandGridCollection.FirstOrDefault(x => x.Name == item.Name);
         if (cur != null)
         {
             FillOmanaHandGridItemInfo(cur, item);
         }
     }
 }
Ejemplo n.º 2
0
        public Expression <Func <Playerstatistic, bool> > GetFilterPredicate()
        {
            Expression <Func <Playerstatistic, bool> > resultPredicate = null;
            var analyzers = OmahaHoleCardsAnalyzer.GetDefaultOmahaHoleCardsAnalyzers();

            if (HandGridCollection.Any(x => x.IsChecked))
            {
                var collection = HandGridCollection.Where(x => x.IsChecked);
                resultPredicate = PredicateBuilder.Create <Playerstatistic>(p => FilterHelpers.CheckOmahaHoleCards(p.Cards, collection));
            }

            return(resultPredicate);
        }
Ejemplo n.º 3
0
 public void ResetHandGridCollection()
 {
     HandGridCollection.ForEach(x => x.IsChecked = false);
 }