コード例 #1
0
        private void RemoveSelectedTrigger()
        {
            if (SelectedTrigger == null || string.IsNullOrEmpty(SelectedCommand))
            {
                return;
            }
            var indexToRemove = TriggerList.IndexOf(SelectedTrigger);

            availableCommands.GetAllTriggers(selectedCommand).RemoveAt(indexToRemove);
            TriggerList.RemoveAt(indexToRemove);
        }