public void CopyTo(ProductionSystem other) { other.Name = this.Name; other.Number = this.Number; other.ForDeviceType = this.ForDeviceType; other.Description = this.Description; other.Stations = this.Stations; other.ScannerComPort = this.ScannerComPort; other.ScannerSettings = this.ScannerSettings; other.CameraIndex = this.CameraIndex; other.IsDummy = this.IsDummy; other.IpRange = this.IpRange; }
private static ProductionSystem CreateDefaultSystemConfig() { var productionSystem = new ProductionSystem { Number = 1, Stations = new List<Station>(), Description = "DZG BASEMETER PRODUCTION SYSTEM", ForDeviceType = "DVSB", Name = "FS BASEMETER", ScannerComPort = "COM6", ScannerSettings = "8N1", IsDummy = true, IpRange = "192.168.188." }; Enumerable.Range(1, 40).ToList().ForEach(i => { var s = new Station() { ComAddress = $"COM{100 + i}", ComConfigurationSettings = "8N1", Number = i, Status = (i == 1) ? StationStatus.Idle : StationStatus.Disabled // enable only 1st station }; productionSystem.Stations.Add(s); }); return productionSystem; }