private bool SelectCardCommand_CanExecute(CardInDeckViewModel cardInDeck) { return cardInDeck != null; }
private void SelectCardCommand_Execute(CardInDeckViewModel cardInDeck) { this.CurrentlySelectedCard = cardInDeck; }
private void RemoveCardCommand_Execute(CardInDeckViewModel cardInDeck) { //this.CurrentlySelectedCar.dModel this.Model.RemoveCard(cardInDeck.Model); }
private bool RemoveCardCommand_CanExecute(CardInDeckViewModel cardInDeck) { return this.Model != null && this.Model.Cards.Any() && cardInDeck != null; }
private void AddCardCommand_Execute(CardInDeckViewModel cardInDeck) { //this.CurrentlySelectedCard.Model this.Model.AddCard(cardInDeck.Model); this.CurrentlySelectedCard = null; }
private bool AddCardCommand_CanExecute(CardInDeckViewModel cardInDeck) { return this.Model != null && cardInDeck != null; }
protected void UnhookCommandsToCard(CardInDeckViewModel cardInDeck) { //unhook the commands for select and remove throw new NotImplementedException("UnhookCommandsToCard is not yet implemented"); }