|
@@ -1130,7 +1130,7 @@ namespace OTSSysMgrApp
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- int a_bHTValue = 0;
|
|
|
+ bool a_bHTValue = false;
|
|
|
//获取参数
|
|
|
bool result = cfun.GetSemHTOnOff(ref a_bHTValue);
|
|
|
if (result)
|
|
@@ -1156,10 +1156,10 @@ namespace OTSSysMgrApp
|
|
|
private void btnSHT_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
try
|
|
|
- {int a_bHTValue = 0;
|
|
|
+ {bool a_bHTValue = false;
|
|
|
//判断是否为空与类型
|
|
|
//赋值
|
|
|
- a_bHTValue = Convert.ToInt32(cbSHT.Checked);
|
|
|
+ a_bHTValue = cbSHT.Checked;
|
|
|
//获取结果参数
|
|
|
bool result = cfun.SetSemHTOnOff(a_bHTValue);
|
|
|
if (result)
|
|
@@ -1302,7 +1302,7 @@ namespace OTSSysMgrApp
|
|
|
|
|
|
private void bVoltageClose_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- int a_HTValue = 0;
|
|
|
+ bool a_HTValue = false;
|
|
|
bool result = cfun.SetSemHTOnOff(a_HTValue);
|
|
|
MessageBox.Show("Whether the shutdown voltage was successful:" + Convert.ToBoolean(result).ToString());
|
|
|
}
|
|
@@ -1310,7 +1310,7 @@ namespace OTSSysMgrApp
|
|
|
private void bVoltageStatus_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
//连接电镜 关闭电压
|
|
|
- int a_HTValue = 0;
|
|
|
+ bool a_HTValue = false;
|
|
|
bool result = cfun.GetSemHTOnOff(ref a_HTValue);
|
|
|
MessageBox.Show("The current state of the voltage:" + Convert.ToBoolean(a_HTValue).ToString());
|
|
|
}
|