public CardModel ReplaceCard(CardModel cardToReplace) { cardToReplace.IsSelected = false; Cards.Add(cardToReplace); DealtCards.Remove(cardToReplace); return(GetCard()); }
private void SendCardToFoundationResult(CardTransferResponseEventArgs response) { _eventAggregator.GetEvent <CardTransferResponseEvent>().Unsubscribe( SendCardToFoundationResult); if (response.Accepted) { //accepted. Debug.WriteLine("accepted"); DealtCards.Remove(response.Card); } else { // rejected Debug.WriteLine("rejected"); } }