public override void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath indexPath)
        {
            if (editingStyle == UITableViewCellEditingStyle.Delete)
            {
                switch (SectionForIndex(indexPath.Section))
                {
                case TriggerTableViewSection.Characteristics:
                    CharacteristicTriggerCreator.RemoveEvent(events [indexPath.Row]);
                    events.Clear();
                    events.AddRange(CharacteristicTriggerCreator.Events());
                    tableView.DeleteRows(new [] { indexPath }, UITableViewRowAnimation.Automatic);
                    break;

                default:
                    base.CommitEditingStyle(tableView, editingStyle, indexPath);
                    break;
                }
            }
        }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     TriggerCreator = new CharacteristicTriggerCreator(EventTrigger, Home);
 }
 // Resets the internal events array from the trigger creator.
 void ReloadData()
 {
     events.Clear();
     events.AddRange(CharacteristicTriggerCreator.Events());
     TableView.ReloadData();
 }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			TriggerCreator = new CharacteristicTriggerCreator (EventTrigger, Home);
		}