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