public void UpdateTriggerList(string value) { selectedCommand = value; TriggerList.Clear(); List <Trigger> triggersForSelectedCommand = availableCommands.GetAllTriggers(selectedCommand); foreach (var trigger in triggersForSelectedCommand) { CheckWhichTriggerToAdd(trigger); } }