コード例 #1
0
 public ShowSetButton(SelectableCards selectableCards) : base(selectableCards)
 {
     _selectableCards = selectableCards;
     selectableCards.CardSet.IsDisplayedOnOverlayChanged += (isDisplayedOnOverlay) => {
         IsToggled = isDisplayedOnOverlay;
         selectableCards.OnButtonChanged(this);
     };
 }
コード例 #2
0
        public CardImageButton(SelectableCards selectableCards, Card card) : base(selectableCards)
        {
            _selectableCards = selectableCards;

            Card = card;
            Text = card.Name;

            card.IsDisplayedOnOverlayChanged += (isDisplayedOnOverlay) => {
                IsToggled = isDisplayedOnOverlay;
                selectableCards.OnButtonChanged(this);
            };
        }