public ShowSetButton(SelectableCards selectableCards) : base(selectableCards) { _selectableCards = selectableCards; selectableCards.CardSet.IsDisplayedOnOverlayChanged += (isDisplayedOnOverlay) => { IsToggled = isDisplayedOnOverlay; selectableCards.OnButtonChanged(this); }; }
public CardImageButton(SelectableCards selectableCards, Card card) : base(selectableCards) { _selectableCards = selectableCards; Card = card; Text = card.Name; card.IsDisplayedOnOverlayChanged += (isDisplayedOnOverlay) => { IsToggled = isDisplayedOnOverlay; selectableCards.OnButtonChanged(this); }; }