public InformTerminalService(List <Device> devices, MyApplication app, DatabaseLayer dbLayer) : base(app, dbLayer) { if (devices.Count != 1) { throw new ArgumentOutOfRangeException(); } Rallo = new Rallo(this); Rallo.Connect(devices[0].IP, devices[0].Port); }
public ServeTerminalService(List <Device> devices, MyApplication app, DatabaseLayer dbLayer) : base(app, dbLayer) { if (devices.Count != 2) { throw new ArgumentOutOfRangeException(); } // pripojenie sa na terminaly ClientDevice = new Rallo(this); ClientDevice.Connect(devices[0].IP, devices[0].Port); ServiceDevice = new Rallo(this); ServiceDevice.Connect(devices[1].IP, devices[1].Port); }