Example #1
0
 private void btnConfirm_Click(object sender, EventArgs e)
 {
     DMSDK.DM_SetMeasureClass(tempConnect, cbxMeasureClass.SelectedIndex + 1); //设置测温档位
     DMSDK.DM_SetRefeType(tempConnect, cbxRefeType.SelectedIndex);             //设置参考温度类型
     if (cbxRefeType.SelectedIndex == 1)
     {
         DMSDK.DM_SetRefeTemp(tempConnect, (int)(Convert.ToDecimal(tbxRefeTemp.Text) * 100));           //自定义温度时
     }
     DMSDK.DM_SetAmbientTemp(tempConnect, (int)(Convert.ToDecimal(tbxAmbientTemp.Text) * 100));         //设置环境温度
     DMSDK.DM_SetObjDistance(tempConnect, (int)(Convert.ToDecimal(tbxObjDistance.Text) * 100));         //设置环境距离
     DMSDK.DM_SetAmbientHumidity(tempConnect, (int)(Convert.ToDecimal(tbxAmbientHumidity.Text) * 100)); //设置环境湿度
     DMSDK.DM_SetReviseParam(tempConnect, (int)(Convert.ToDecimal(tbxReviseParam.Text) * 100));         //修正系数
     DMSDK.DM_SetReviseTemp(tempConnect, (int)(Convert.ToDecimal(tbxReviseTemp.Text) * 100));           //修正温度
     Init_Param();
     MessageBox.Show("修改完成!");
 }