Пример #1
0
 // alternate constructor for specifying
 // desired modules at compile-time
 public NewerMagellan(SerialPortHandler[] args)
 {
     this.sph = args;
     FinishInit();
 }
Пример #2
0
 override protected void OnStart(String[] args){
     SerialPortHandler[] sph = new SerialPortHandler[1];
     sph[0] = new SPH_Magellan_Scale("COM1");
     this.my_obj = new Magellan(sph);
 }
Пример #3
0
 // alternate constructor for specifying
 // desired modules at compile-time
 public Magellan(SerialPortHandler[] args)
 {
     this.sph = new List<SerialPortHandler>(args);
     MonitorSerialPorts();
     UdpListen();
 }
Пример #4
0
 // 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();
 }