2 using System.Collections.Generic;
6 using DirectOutput.Table;
7 using System.Xml.Serialization;
9 namespace DirectOutput.FX
20 private string _EffectName;
28 public string EffectName
30 get {
return _EffectName; }
33 if (_EffectName != value)
36 if (EffectNameChanged != null)
38 EffectNameChanged(
this,
new EventArgs());
54 protected void TableElementEffect_EffectNameChanged(
object sender, EventArgs e)
83 if (!EffectName.IsNullOrWhiteSpace() &&
Table.
Effects.Contains(EffectName))
104 Effect.Trigger(TableElementData);
109 Log.
Exception(
"A exception occured when triggering effect {0} for table element {1} {2} with value {3}. Effect assignement will be deactivated.".Build(
new object[] { Effect.Name, TableElementData.
TableElementType, TableElementData.
Number, TableElementData.
Value }), E);
123 ResolveEffectName(
Table);
141 EffectNameChanged +=
new EventHandler<EventArgs>(TableElementEffect_EffectNameChanged);
151 this.EffectName = EffectName;