2 using System.Collections.Generic;
6 namespace DirectOutput.Cab.Out.DMX
14 private int _DmxChannel;
31 if (_DmxChannel != value)
33 if (!value.IsBetween(1, 512))
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));
37 if (Name.IsNullOrWhiteSpace() || Name ==
"DmxChannel {0:000}".Build(_DmxChannel))
39 Name =
"DmxChannel {0:00}".Build(value);