public CtrlStation(Station station, FrmMain form): this()
 {
     this.mainForm = form;
     this.Station = station;
     station.StationControl = this;
     if (station.Device == null)
     {
         this.lblStationNo.Text = station.Number.ToString();
     }
 }
        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;
        }