コード例 #1
0
ファイル: Frm温度补偿.cs プロジェクト: wpmyj/512-HartTool
 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());
 }
コード例 #2
0
ファイル: Frm电流校准.cs プロジェクト: wpmyj/512-HartTool
 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;
 }
コード例 #3
0
 public void ReadData()
 {
     btnRead.Enabled  = HartDevice != null && HartDevice.IsConnected;
     btnWrite.Enabled = HartDevice != null && HartDevice.IsConnected && HartDevice.IsMyDevice();
 }