Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }