public void ReadData() { if (HartDevice == null || !HartDevice.IsConnected) { return; } btnRead0.Enabled = (HartDevice != null && HartDevice.IsConnected); btnRead1.Enabled = (HartDevice != null && HartDevice.IsConnected); btnRead2.Enabled = (HartDevice != null && HartDevice.IsConnected); btnWrite0.Enabled = (HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice()); btnWrite1.Enabled = (HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice()); btnWrite2.Enabled = (HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice()); }
public void ReadData() { btnFix4.Enabled = HartDevice != null && HartDevice.IsConnected; btnFix20.Enabled = HartDevice != null && HartDevice.IsConnected; btn4.Enabled = HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice(); btn20.Enabled = HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice(); btnFixedCurrent.Enabled = HartDevice != null && HartDevice.IsConnected; }
public void ReadData() { btnRead.Enabled = HartDevice != null && HartDevice.IsConnected; btnWrite.Enabled = HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice(); }