/// <summary> /// Removes the trigger. /// </summary> /// <param name="triggerToRemove">The trigger to remove.</param> public void RemoveTrigger([NotNull] TriggerViewModel triggerToRemove) { Assert.ArgumentNotNull(triggerToRemove, "triggerToRemove"); Group.Triggers.Remove(triggerToRemove.Trigger); _triggers.Remove(triggerToRemove); }
/// <summary> /// /// </summary> /// <param name="index"></param> /// <param name="triggerToAdd"></param> public void InsertTrigger(int index, [NotNull] TriggerViewModel triggerToAdd) { Assert.ArgumentNotNull(triggerToAdd, "triggerToAdd"); Group.Triggers.Insert(index, triggerToAdd.Trigger); _triggers.Insert(index, triggerToAdd); }