Exemplo n.º 1
0
 public void Release()
 {
     foreach (int CardNum in Leds.Keys)
     {
         if (Leds[CardNum] == "OPEN")
         {
             LED2008.User_CloseScreen(CardNum);
         }
     }
     Leds.Clear();
 }
Exemplo n.º 2
0
        internal bool Remove(int CardNum)
        {
            int key = CardNum;

            if (Leds.ContainsKey(key))
            {
                if (Leds[key] == "OPEN")
                {
                    if (LED2008.User_CloseScreen(CardNum))
                    {
                        Leds[key] = "CLOSE";
                    }
                }
                return(Leds[key] == "CLOSE");
            }
            else
            {
                return(true);
            }
        }