WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
ToyEventArgs.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace DirectOutput.Cab.Toys
7 {
8 
12  // TODO: Check if this class is necessary (no references to the class yet).
13  public class ToyEventArgs : EventArgs
14  {
15 
19  public IToy Toy { get; set; }
20 
24  public string Name { get { return Toy.Name; } }
25 
30  public ToyEventArgs(IToy Toy)
31  {
32  this.Toy = Toy;
33  }
34 
38  public ToyEventArgs() { }
39  }
40 }
Common interface for all toy implementations. The abstract class ToyBase implements this interface...
Definition: IToy.cs:9
EventArgs for events of IToy objects
Definition: ToyEventArgs.cs:13
ToyEventArgs()
Initializes a new instance of the ToyEventArgs class.
Definition: ToyEventArgs.cs:38
new string Name
Gets or sets the Name of the IToy.
Definition: IToy.cs:17
ToyEventArgs(IToy Toy)
Initializes a new instance of the ToyEventArgs class.
Definition: ToyEventArgs.cs:30