Ejemplo n.º 1
0
 /// <summary>
 /// Adds a trigger to the table
 /// </summary>
 /// <param name="Name">Name of the trigger</param>
 /// <param name="Definition">Definition of the trigger</param>
 /// <param name="Type">Trigger type</param>
 /// <returns>The trigger specified</returns>
 public override ITrigger AddTrigger(string Name, string Definition, TriggerType Type)
 {
     return(Triggers.AddAndReturn(new Trigger(Name, Definition, Type, this)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a trigger to the table
 /// </summary>
 /// <param name="name">Name of the trigger</param>
 /// <param name="definition">Definition of the trigger</param>
 /// <param name="type">Trigger type</param>
 /// <returns>The trigger specified</returns>
 public override ITrigger AddTrigger(string name, string definition, TriggerType type) => Triggers.AddAndReturn(new Trigger(name, definition, type, this));