3 using System.Xml.Serialization;
18 #region TableElementType
25 get {
return _TableElementType; }
28 if (_TableElementType != value)
30 _TableElementType = value;
38 private int _Number = 0;
44 get {
return _Number; }
59 private string _Name =
"";
69 if (_Name != value.ToUpperInvariant())
71 _Name = value.ToUpperInvariant();
72 if (NameChanged != null)
74 NameChanged(
this,
new EventArgs());
87 private int _Value =
int.MinValue;
95 get {
return _Value; }
103 if (ValueChanged != null)
168 public event EventHandler<TableElementValueChangedEventArgs>
ValueChanged;
174 AssignedEffects.Trigger(GetTableElementData());
187 get {
return _TableElementEffectList; }
190 _TableElementEffectList = value;
212 ValueChanged +=
new EventHandler<TableElementValueChangedEventArgs>(TableElement_ValueChanged);
225 this.TableElementType = TableElementType;
226 this.Number = Number;
240 this.Number =
int.MinValue;
241 this.Name = TableElementName;
TableElement(TableElementTypeEnum TableElementType, int Number, int Value)
Initializes a new instance of the TableElement class with the specified parameters.
EventHandler< TableElementValueChangedEventArgs > ValueChanged
Event is fired if the value of the property State is changed.
TableElement(string TableElementName, int Value)
Initializes a new instance of the TableElement class.
TableElementTypeEnum
Enum for the different TableElement types.
EventHandler< EventArgs > NameChanged
Event is fired if the value of the property Name is changed.
EventArgs object for TableElementValueChanged events.
Data representing the state of a table emlement
TableElementData GetTableElementData()
Gets a TableElementData object containing the current data for the TableElement.
The namespace FX contains effect related classes. Effects can be assigned directly to a Table and wi...
Represents a element (e.g. Switch, Solenoid) of a pinball table
List of effects which are assigned to some other object.