Esempio n. 1
0
 public void AddCombination(HaEKeyCombination keyCombination)
 {
     lock (keyCombinations)
     {
         keyCombinations.Add(keyCombination);
     }
 }
Esempio n. 2
0
 public void RemoveCombination(HaEKeyCombination keyCombination)
 {
     lock (keyCombinations)
     {
         for (int i = 0; i < keyCombinations.Count; i++)
         {
             if (keyCombinations[i].Equals(keyCombination))
             {
                 keyCombinations.RemoveAtFast(i);
                 return;
             }
         }
     }
 }