示例#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)
 {
 }
 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);
 }