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); } } }
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); }
public void ResetHandGridCollection() { HandGridCollection.ForEach(x => x.IsChecked = false); }