Esempio n. 1
0
 /// <summary>
 /// Gets a value indication whether trace is enabled for the specified trigger.
 /// </summary>
 /// <param name="trigger">The trigger.</param>
 /// <returns></returns>
 public static bool GetTraceEnabled([NotNull] TriggerBase trigger)
 {
     return((bool)trigger.GetValue(TraceEnabledProperty));
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the trigger name for the specified trigger. This will be used
 /// to identify the trigger in the debug output.
 /// </summary>
 /// <param name="trigger">The trigger.</param>
 /// <returns></returns>
 public static string GetTriggerName([NotNull] TriggerBase trigger)
 {
     return((string)trigger.GetValue(TriggerNameProperty));
 }