WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
DMXOutput.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.Out.DMX
7 {
12  public class DMXOutput: Output, IOutput
13  {
14  private int _DmxChannel;
15 
23  public int DmxChannel
24  {
25  get
26  {
27  return _DmxChannel;
28  }
29  set
30  {
31  if (_DmxChannel != value)
32  {
33  if (!value.IsBetween(1, 512))
34  {
35  throw new Exception("Dmx channels numbers must be in the range of 1-512. The supplied number {0} is out of range.".Build(value));
36  }
37  if (Name.IsNullOrWhiteSpace() || Name == "DmxChannel {0:000}".Build(_DmxChannel))
38  {
39  Name = "DmxChannel {0:00}".Build(value);
40  }
41  _DmxChannel = value;
42  }
43  }
44  }
45  }
46 }
IOutput implementation for DMX. Inherits from Output and adds the DmxChannel property.
Definition: DMXOutput.cs:12
Common interface for outputs of any output controller. The Output class implements this interface and...
Definition: IOutput.cs:10
Basic IOutput implementation.
Definition: Output.cs:14