private bool ProcessSuitHint(SuitHint hint) { var hintApplies = (suit == hint.Suit); foreach (var item in from item in GetSuits() let isHintedSuit = (item == hint.Suit) where hintApplies != isHintedSuit && !disprovenSuits.Contains(item) select item) { disprovenSuits.Add(item); PushUndoable(delegate() { disprovenSuits.Remove(item); }); } return(hintApplies); }
private bool ProcessSuitHint(SuitHint hint) { var hintApplies = (suit == hint.Suit); foreach (var item in from item in GetSuits() let isHintedSuit = (item == hint.Suit) where hintApplies != isHintedSuit && !disprovenSuits.Contains(item) select item) { disprovenSuits.Add(item); PushUndoable(delegate() { disprovenSuits.Remove(item); }); } return hintApplies; }