public void SetFirstSuitUnlessForOffsuitGrid(SuitEnum suit, T set, Func <T, bool> unless) { if (Category != GridCategoryEnum.Offsuit) { throw new InvalidOperationException(); } OffsuitStatus.SetAllUnless(set, unless); }
public void SetAllUnless(T set, Func <T, bool> unless) { switch (Category) { case GridCategoryEnum.Suited: SuitedStatus.SetAllUnless(set, unless); break; case GridCategoryEnum.Offsuit: OffsuitStatus.SetAllUnless(set, unless); break; case GridCategoryEnum.Paired: PairedStatus.SetAllUnless(set, unless); break; } }