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);
108 if (TableElementData != null)
110 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);
114 Log.
Exception(
"A exception occured when triggering effect {0} as a static effect.Effect assignement will be deactivated.".Build(
new object[] { Effect.Name}), E);
129 ResolveEffectName(
Table);
147 EffectNameChanged +=
new EventHandler<EventArgs>(TableElementEffect_EffectNameChanged);
157 this.EffectName = EffectName;