public override IOController NewIOController(string controlident) { controlident = controlident.ToUpper(); if (AllIOs.Exists(x => x.ControlIdent == controlident)) { throw new Exception("An IOController with this controlident allready exitst!"); } AerotechIOController a = new AerotechIOController(controlident); AllIOs.Add(a); return a; }
public override IOController NewIOController(string controlident) { controlident = controlident.ToUpper(); if (AllIOs.Exists(x => x.ControlIdent == controlident)) { throw new Exception("An IOController with this controlident allready exitst!"); } AerotechIOController a = new AerotechIOController(controlident); AllIOs.Add(a); return(a); }