public virtual LinkedListNode <Card> RemoveCard(Card _card) { LinkedListNode <Card> temp = ListCard.Find(_card); ListCard.Remove(temp); OnCardRemoved(new CardEventArgs(temp.Value)); return(temp); }
public virtual Card RemoveAt(int index) { var temp = ListCard.ElementAt <Card>(index); ListCard.Remove(temp); OnCardRemoved(new CardEventArgs(temp)); return(temp); }
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); }