Пример #1
0
        public virtual LinkedListNode <Card> RemoveCard(Card _card)
        {
            LinkedListNode <Card> temp = ListCard.Find(_card);

            ListCard.Remove(temp);
            OnCardRemoved(new CardEventArgs(temp.Value));
            return(temp);
        }
Пример #2
0
        public virtual Card RemoveAt(int index)
        {
            var temp = ListCard.ElementAt <Card>(index);

            ListCard.Remove(temp);
            OnCardRemoved(new CardEventArgs(temp));
            return(temp);
        }
Пример #3
0
        public virtual LinkedListNode <Card> RemoveTop()
        {
            if (ListCard.Count == 0)
            {
                return(null);
            }
            LinkedListNode <Card> temp = ListCard.Last;

            ListCard.Remove(temp);
            OnCardRemoved(new CardEventArgs(temp.Value));
            return(temp);
        }