2 using System.Collections.Generic;
6 namespace DirectOutput.Cab.Out.LW
15 private int _LedWizOutputNumber;
23 public int LedWizOutputNumber
27 return _LedWizOutputNumber;
31 if (_LedWizOutputNumber != value)
33 if (!value.IsBetween(1, 32))
35 throw new Exception(
"LedWiz output numbers must be in the range of 1-32. The supplied number {0} is out of range.".Build(value));
37 if (Name.IsNullOrWhiteSpace() || Name ==
"LedWizOutput {0:00}".Build(_LedWizOutputNumber))
39 Name =
"LedWizOutput {0:00}".Build(value);
41 _LedWizOutputNumber = value;
62 this.LedWizOutputNumber = LedWizOutputNumber;
64 this.Name =
string.Format(
"LedWizOutput {0:00}", LedWizOutputNumber);