2 using System.Collections.Generic;
7 using System.Xml.Serialization;
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());
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;
TableElementTypeEnum TableElementType
The type of the table element.
bool Contains(string Name)
Checks if a INamedItem object with the specified name exists in the list.
int Number
The number of the table element.
A simple logger used to record important events and exceptions.
int Value
The value of the table element.
EventHandler< EventArgs > EffectNameChanged
Event is fired if the value of the property EffectName is changed.
void TableElementEffect_EffectNameChanged(object sender, EventArgs e)
Handles the EffectNameChanged event of the TableElementEffect control.
Common interface for all effects. If a new effect is implemented it is best to inherit from the abst...
Data representing the state of a table emlement
EffectList Effects
List of table specific effects.
The Table namespace contains all table specific classes like the Table class itself, TableElement and effect assigment classes.
Holds all table specific information and handles all TableElements
The namespace FX contains effect related classes. Effects can be assigned directly to a Table and wi...
Table()
Initializes a new instance of the Table class.
static void Exception(string Message, Exception E=null)
Writes a exception message to the log.
Handles the assignemt of a effect to a AssignedEffectList.