private void OnCountOfCardsSelected(BingoCardsLayout layout) { var handler = CountOfCardsSeleced; if (handler == null) { return; } handler(this, new CountOfCardsToPlaySelectedEventArgs(layout)); }
public void CreateAndLayout(BingoCardsLayout layout) { switch (layout) { case BingoCardsLayout.SingleCard: CreateAndLayoutOne(); break; case BingoCardsLayout.TwoCards: CreateAndLayoutTwo(); break; case BingoCardsLayout.ThreeCards: CreateAndLayoutThree(); break; case BingoCardsLayout.FourCards: CreateAndLayoutFour(); break; } }
private void OnCountOfCardsSelected(BingoCardsLayout layout) { CoreGameObjectsLocator.Default.CardsFactory.CreateAndLayout(layout); CoreGameObjectsLocator.Default.CardsCollection.DisableAllCards(); _readySteadyGoView.Show(); }
public CountOfCardsToPlaySelectedEventArgs(BingoCardsLayout cardsLayout) { CardsLayout = cardsLayout; }