/// <summary> /// 获取参数列表 /// </summary> private void GetParameters() { faceThermometryBasicParameter = cell.GetFaceThermometryBasicParameter(null); faceThermometryRegion = cell.GetFaceThermometryRegion(null); bodyTemperatureCompensation = cell.GetBodyTemperatureCompensation(null); blackBody = cell.GetBlackBody(null); if ((faceThermometryBasicParameter == null) || (faceThermometryBasicParameter == null) || (faceThermometryRegion == null) || (bodyTemperatureCompensation == null)) { MessageBox.Show("获取参数列表失败!"); Close(); return; } text_facetbp_emissivity.Text = faceThermometryBasicParameter["emissivity"].ToString().ToLower(); text_facetbp_distance.Text = faceThermometryBasicParameter["distance"].ToString().ToLower(); text_facetr_targetSpeed.Text = faceThermometryRegion["targetSpeed"].ToString().ToLower(); text_facetr_sensitivity.Text = faceThermometryRegion["sensitivity"].ToString().ToLower(); text_facetr_alarmTemperature.Text = faceThermometryRegion["alarmTemperature"].ToString().ToLower(); com_bodytc_type.Text = bodyTemperatureCompensation["type"].ToString().ToLower() == "auto" ? "自动" : "手动"; text_bodytc_compensationValue.Text = bodyTemperatureCompensation["compensationValue"].ToString().ToLower(); text_bodytc_smartCorrection.Text = bodyTemperatureCompensation["smartCorrection"].ToString().ToLower(); com_bodytc_mode.Text = bodyTemperatureCompensation["environmentalTemperatureMode"].ToString().ToLower() == "auto" ? "自动" : "手动"; text_bodytc_environ.Text = bodyTemperatureCompensation["environmentalTemperature"].ToString().ToLower(); check_black_enabled.Checked = blackBody["enabled"].ToString().ToLower() == "true" ? true : false; text_black_distance.Text = blackBody["distance"].ToString().ToLower(); text_black_emissivity.Text = blackBody["emissivity"].ToString().ToLower(); text_black_temp.Text = blackBody["temperature"].ToString().ToLower(); CheckedEnabled(); initialized = true; }