Browse Source

correct the BOOL type to bool of the SetSemHTOnOff parameters

gsp 3 năm trước cách đây
mục cha
commit
7bcee56e17

+ 3 - 3
OTSCPP/OTSClrInterface/ControlClr/OTSControlFunExport.h

@@ -301,7 +301,7 @@ namespace OTSCLRINTERFACE
 		}
 
 
-		bool GetSemHTOnOff(BOOL% a_bHTValue)
+		bool GetSemHTOnOff(bool% a_bHTValue)
 		{
 
 			BOOL bHTV = FALSE;
@@ -311,9 +311,9 @@ namespace OTSCLRINTERFACE
 		}
 
 
-		bool SetSemHTOnOff(BOOL a_bHTValue)
+		bool SetSemHTOnOff(bool a_bHTValue)
 		{
-			BOOL bRev = m_pSem->SetHTOnOff(a_bHTValue);
+			bool bRev = m_pSem->SetHTOnOff(a_bHTValue);
 			return bRev;
 		}
 

+ 5 - 5
OTSSysMgrApp/SemTestForms.cs

@@ -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());
         }