Esempio n. 1
0
 private static void AddToCards(IDictionary<int, int> cards, Card card)
 {
     int id = card.Id;
     if (card.Data.Alias != 0)
         id = card.Data.Alias;
     if (cards.ContainsKey(id))
         cards[id]++;
     else
         cards.Add(id, 1);
 }
Esempio n. 2
0
 private static UInt32 OnCardReader(UInt32 code, Card.CardData* pData)
 {
     Card card = CardsManager.GetCard((int) code);
     if (card != null)
     {
         *pData = card.Data;
     }
     return code;
 }
Esempio n. 3
0
 private static void LoadCard(IDataRecord reader)
 {
     Card card = new Card(reader);
     _cards.Add(card.Id, card);
 }