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