Пример #1
0
        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();
        }
Пример #2
0
 public virtual void RemoveCards(PlayerViewModel viewModel, RemoveCardsCommand arg)
 {
 }
Пример #3
0
 public virtual void ExecuteRemoveCards(RemoveCardsCommand command)
 {
     command.Sender = Player;
     Player.RemoveCards.OnNext(command);
 }
Пример #4
0
 public virtual void RemoveCardsHandler(RemoveCardsCommand command)
 {
     this.RemoveCards(command.Sender as PlayerViewModel, command);
 }