public override void RemoveCards(PlayerViewModel viewModel, RemoveCardsCommand arg) { base.RemoveCards(viewModel, arg); foreach (CardInfo ci in arg.CardInfos) { CardViewModel card = viewModel.HandCards.FirstOrDefault(cardVM => CardInfo.ValueEqual(cardVM.Info, ci)); viewModel.HandCards.Remove(card); } viewModel.ExecuteReorder(); }
public virtual void RemoveCards(PlayerViewModel viewModel, RemoveCardsCommand arg) { }
public virtual void ExecuteRemoveCards(RemoveCardsCommand command) { command.Sender = Player; Player.RemoveCards.OnNext(command); }
public virtual void RemoveCardsHandler(RemoveCardsCommand command) { this.RemoveCards(command.Sender as PlayerViewModel, command); }