Beispiel #1
0
 //remove the card from the group "key"
 public static void RemoveCard(Menu_Sort_Box key, Card card)
 {
     if (cardGroups.ContainsKey(key))
     {
         if (cardGroups[key].Contains(card))
         {
             card.RemoveFromGroup(key);
             cardGroups[key].Remove(card);
             if (cardGroups[key].Count == 0)
             {
                 Remove(key);
             }
         }
     }
 }
 //remove the card from the group "key"
 public static void RemoveCard(String key, Card card)
 {
     if (cardGroups.ContainsKey(key))
     {
         if (cardGroups[key].Contains(card))
         {
             card.RemoveFromGroup(key);
             cardGroups[key].Remove(card);
             if (cardGroups[key].Count == 0)
             {
                 Remove(key);
             }
         }
     }
 }
 public void RemoveCard(Menu_Sort_Box key, Card c)
 {
     Group_List.RemoveCard(key, c);
     c.RemoveFromGroup(key);
 }
 public void RemoveCard(String key, Card c)
 {
     Group_List.RemoveCard(key, c);
     c.RemoveFromGroup(key);
 }
 public void RemoveCard(Menu_Sort_Box key, Card c)
 {
     Group_List.RemoveCard(key, c);
     c.RemoveFromGroup(key);
 }