// alternate constructor for specifying // desired modules at compile-time public NewerMagellan(SerialPortHandler[] args) { this.sph = args; FinishInit(); }
override protected void OnStart(String[] args){ SerialPortHandler[] sph = new SerialPortHandler[1]; sph[0] = new SPH_Magellan_Scale("COM1"); this.my_obj = new Magellan(sph); }
// alternate constructor for specifying // desired modules at compile-time public Magellan(SerialPortHandler[] args) { this.sph = new List<SerialPortHandler>(args); MonitorSerialPorts(); UdpListen(); }
// alternate constructor for specifying // desired modules at compile-time public Magellan(SerialPortHandler[] args) { this.sph = new List<SerialPortHandler>(); foreach (SerialPortHandler s in args) { sph.Add(s); } FinishInit(); }