Exemplo 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();
     }
 }
Exemplo 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();
     }
 }
Exemplo n.º 3
0
 public void Disconnect()
 {
     _connected = false;
     _device    = null;
 }
Exemplo n.º 4
0
 public void Disconnect()
 {
     _connected = false;
     _device = null;
 }