Esempio n. 1
0
 public void Connect(UserPortDevice device)
 {
     _device    = device;
     _connected = _device != null;
     if (_device != null)
     {
         _device.ReadCounter1  = () => ReadCounter1();
         _device.ReadCounter2  = () => ReadCounter2();
         _device.ReadHandshake = () => ReadHandshake();
         _device.ReadSerial1   = () => ReadSerial1();
         _device.ReadSerial2   = () => ReadSerial2();
     }
 }
Esempio n. 2
0
 public void Connect(UserPortDevice device)
 {
     _device = device;
     _connected = _device != null;
     if (_device != null)
     {
         _device.ReadCounter1 = () => ReadCounter1();
         _device.ReadCounter2 = () => ReadCounter2();
         _device.ReadHandshake = () => ReadHandshake();
         _device.ReadSerial1 = () => ReadSerial1();
         _device.ReadSerial2 = () => ReadSerial2();
     }
 }
Esempio n. 3
0
 public void Disconnect()
 {
     _connected = false;
     _device    = null;
 }
Esempio n. 4
0
 public void Disconnect()
 {
     _connected = false;
     _device = null;
 }