private void buttonLugdownSave_Click(object sender, EventArgs e) { carinfor.LugdownConfigInfdata lugdownconfig = configini.getLugdownConfigIni(); lugdownconfig.MinSpeed = int.Parse(textBoxLugDownMinSpeed.Text); lugdownconfig.MaxSpeed = int.Parse(textBoxLugDownMaxSpeed.Text); lugdownconfig.Zsj = comboBoxLugdownZsj.Text; lugdownconfig.Zsjck = comboBoxLugdownZsjCom.Text; lugdownconfig.IfSureTemp = checkBoxLugdownSureTemp.Checked; lugdownconfig.Smpl = float.Parse(textBoxLugdownSmpl.Text); if (radioButtonLugdownHgl.Checked) { lugdownconfig.Glsmms = "恒功率"; } else { lugdownconfig.Glsmms = "恒速"; } if (configini.writeLugdownConfigIni(lugdownconfig)) { MessageBox.Show("保存成功.", "系统提示"); } else { MessageBox.Show("数据输入有误,请检查.", "未成功保存"); } }
private void initConfigInfo() { carinfor.equipmentConfigInfdata equipconfig = configini.getEquipConfigIni(); carinfor.VmasConfigInfdata vmasconfig = configini.getVmasConfigIni(); carinfor.AsmConfigInfdata asmconfig = configini.getAsmConfigIni(); carinfor.SdsConfigInfdata sdsconfig = configini.getSdsConfigIni(); carinfor.BtgConfigInfdata btgconfig = configini.getBtgConfigIni(); carinfor.LugdownConfigInfdata lugdownconfig = configini.getLugdownConfigIni(); }
private void buttonLugdownSave_Click(object sender, EventArgs e) { try { carinfor.LugdownConfigInfdata lugdownconfig = configini.getLugdownConfigIni(); lugdownconfig.MinSpeed = int.Parse(textBoxLugDownMinSpeed.Text); lugdownconfig.MaxSpeed = float.Parse(textBoxLugDownMaxSpeed.Text); lugdownconfig.Smpl = int.Parse(textBoxLugdownSmpl.Text); lugdownconfig.IfSureTemp = checkBoxLugdownSureTemp.Checked; lugdownconfig.isFdjzsJudge = checkBoxLugdownZsPd.Checked; lugdownconfig.gsMaxPPD = checkBoxGSMAXPPD.Checked; lugdownconfig.gsKcbPD = checkBoxGSKCBPD.Checked; lugdownconfig.gsKhgPD = checkBoxGSKHGPD.Checked; lugdownconfig.Zsj = comboBoxLugdownZsj.Text; lugdownconfig.Zsjck = comboBoxLugdownZsjCom.Text; lugdownconfig.IsTestYw = checkBoxLugdownYw.Checked; lugdownconfig.Glsmms = (radioButtonLugdownHgl.Checked) ? "恒功率" : "恒速度"; lugdownconfig.LugdownMaxHpStyle = (radioButtonLugMaxHpVelmaxhp.Checked) ? 1 : 0; lugdownconfig.maxRPMStyle = (radioButtonLugdown_MaxRPM_SD.Checked) ? 0 : 1; lugdownconfig.testNOx = checkBoxLugdownJcNox.Checked; lugdownconfig.LugdownGljk = checkBoxLugdownGljk.Checked; lugdownconfig.Lugdown_Gljk_value = float.Parse(textBoxLug_gljk_value.Text); lugdownconfig.Ywj = comboBoxYWJ_LUGDOWN.Text; lugdownconfig.isYdjk_glsm = checkBoxLugdown_glsm_ydjk.Checked; lugdownconfig.ydjk_glsm_value = double.Parse(textBoxLugdown_glsm_ydjk.Text); lugdownconfig.isYdjk_cl = checkBoxLugdown_cl_ydjk.Checked; lugdownconfig.ydjk_cl_value = double.Parse(textBoxLugdown_cl_ydjk.Text); lugdownconfig.IsLugdownPrepare = checkBoxLudown_prepare.Checked; if (lugdownconfig.Lugdown_Gljk_value > 80f || lugdownconfig.Lugdown_Gljk_value < 20f) { MessageBox.Show("加载功率规定值范围为20~80", "数值输入超出范围"); return; } if (configini.writeLugdownConfigIni(lugdownconfig)) { MessageBox.Show("保存成功.", "系统提示"); } else { MessageBox.Show("数据输入有误,请检查.", "未成功保存"); } } catch { MessageBox.Show("数据输入有误,请检查.", "未成功保存"); } }
private void settings_Load(object sender, EventArgs e) { carinfor.LugdownConfigInfdata lugdownconfig = configini.getLugdownConfigIni(); textBoxLugDownMinSpeed.Text = lugdownconfig.MinSpeed.ToString("0"); textBoxLugDownMaxSpeed.Text = lugdownconfig.MaxSpeed.ToString("0"); comboBoxLugdownZsj.Text = lugdownconfig.Zsj; comboBoxLugdownZsjCom.Text = lugdownconfig.Zsjck; checkBoxLugdownSureTemp.Checked = lugdownconfig.IfSureTemp; if (lugdownconfig.Glsmms == "恒功率") { radioButtonLugdownHgl.Checked = true; radioButtonLugdownhs.Checked = false; } else { radioButtonLugdownHgl.Checked = false; radioButtonLugdownhs.Checked = true; } textBoxLugdownSmpl.Text = lugdownconfig.Smpl.ToString("0"); }
private void initConfigInfo() { carinfor.equipmentConfigInfdata equipconfig = configini.getEquipConfigIni(); carinfor.VmasConfigInfdata vmasconfig = configini.getVmasConfigIni(); carinfor.AsmConfigInfdata asmconfig = configini.getAsmConfigIni(); carinfor.SdsConfigInfdata sdsconfig = configini.getSdsConfigIni(); carinfor.BtgConfigInfdata btgconfig = configini.getBtgConfigIni(); carinfor.DynConfigInfdata dynconfig = configini.getDynConfigIni(); carinfor.LugdownConfigInfdata lugdownconfig = configini.getLugdownConfigIni(); StringBuilder temp = new StringBuilder(); temp.Length = 2048; try { ini.INIIO.GetPrivateProfileString("DIW", "DIWLX", "轻型车", temp, 2048, Application.StartupPath + @"\detectConfig.ini"); //读配置文件(段名,字段,默认值,保存的strbuilder,大小,路径) if (temp.ToString() == "轻型车") { comboBoxCgjlx.SelectedIndex = 0; } else { comboBoxCgjlx.SelectedIndex = 1; } ini.INIIO.GetPrivateProfileString("DIW", "DIWMP", "907", temp, 2048, Application.StartupPath + @"\detectConfig.ini"); //读配置文件(段名,字段,默认值,保存的strbuilder,大小,路径) diwmp = temp.ToString(); ini.INIIO.GetPrivateProfileString("废气仪标定", "PEF", "907", temp, 2048, Application.StartupPath + @"\detectConfig.ini"); //读配置文件(段名,字段,默认值,保存的strbuilder,大小,路径) pef = temp.ToString(); textBoxDIWMP.Text = diwmp; textBoxPEF.Text = pef; } catch { } comboBoxHJT.Text = equipconfig.TestStandard; textBoxVmasNdz.Text = vmasconfig.Ndz.ToString("0.0"); textBoxVmasLljll.Text = vmasconfig.Lljll.ToString("0.0"); textBoxVmasWqll.Text = vmasconfig.Wqll.ToString("0.0"); textBoxVmasXsb.Text = vmasconfig.Xsb.ToString("0.0"); textBoxVmasJzgl.Text = vmasconfig.Gljz.ToString("0.0"); textBoxVmasLxcc.Text = vmasconfig.Lxcc.ToString("0.0"); textBoxVmasLjcc.Text = vmasconfig.Ljcc.ToString("0.0"); textBoxVmasDssj.Text = vmasconfig.Dssj.ToString("0"); textBoxVmasNdccsj.Text = vmasconfig.ndccsj.ToString("0"); checkBoxVmasSdjk.Checked = vmasconfig.SpeedMonitor; checkBoxVmasJzgljk.Checked = vmasconfig.PowerMonitor; checkBoxVmasNdjk.Checked = vmasconfig.ConcentrationMonitor; checkBoxVmasLljk.Checked = vmasconfig.FlowMonitorr; checkBoxVmasXsbjk.Checked = vmasconfig.ThinnerratioMonitor; checkBoxVmasHjyjk.Checked = vmasconfig.Huanjingo2Monitor; checkBoxVmasCyljk.Checked = vmasconfig.RemainedMonitor; checkBoxVmasFlowback.Checked = vmasconfig.Flowback; checkBoxVmasZero.Checked = vmasconfig.IfFqyTl; checkBoxVmasDisplayData.Checked = vmasconfig.IfDisplayData; checkBoxVmasSureTemp.Checked = vmasconfig.IfSureTemp; checkBoxVmasYw.Checked = vmasconfig.IsTestYw; checkBoxAutoRestart.Checked = vmasconfig.AutoRestart; radioButtonVmasAccelerateProcess.Checked = !vmasconfig.IsWholeProcessJK; radioButtonVmasWholeProcess.Checked = vmasconfig.IsWholeProcessJK; checkBoxVMAS_CO2ANDO2.Checked = vmasconfig.SdCo2AndO2Monitor; textBoxVmasFlowbackTime.Text = vmasconfig.FlowTime.ToString("0"); radioButtonCjBeforeTl.Checked = vmasconfig.CjBeforeTl; radioButtonCjAfterTl.Checked = !vmasconfig.CjBeforeTl; checkBoxVmas_norezero.Checked = vmasconfig.vmasNoReZero; textBoxAsmNdz.Text = asmconfig.Ndz.ToString("0.0"); textBoxAsmGlwc.Text = asmconfig.Gljz.ToString("0.0"); textBoxAsmCcsj.Text = asmconfig.Lxcc.ToString("0.0"); textBoxAsmFlowtime.Text = asmconfig.FlowTime.ToString("0"); checkBoxAsmSdjk.Checked = asmconfig.SpeedMonitor; checkBox05Sdjk.Checked = asmconfig.Speed05Monitor; checkBoxAsmGljk.Checked = asmconfig.PowerMonitor; checkBoxAsmNdjk.Checked = asmconfig.ConcentrationMonitor; checkBoxAsmClljk.Checked = asmconfig.RemainedMonitor; checkBoxAsmFlowback.Checked = asmconfig.Flowback; checkBoxAsmZero.Checked = asmconfig.IfFqyTl; checkBoxAsmDispData.Checked = asmconfig.IfDisplayData; checkBoxAsmSuretemp.Checked = asmconfig.IfSureTemp; checkBoxASMyw.Checked = asmconfig.IsTestYw; checkBoxKsgk.Checked = asmconfig.IsKsgkUsed; checkBoxAsmHalfXzKsgk.Checked = asmconfig.IsAsmHalfXzKsgk; comboBoxYWJ_ASM.Text = asmconfig.Ywj; checkBoxAsm_nozero.Checked = asmconfig.asmNoReZero; textBoxLugDownMinSpeed.Text = lugdownconfig.MinSpeed.ToString("0"); textBoxLugDownMaxSpeed.Text = lugdownconfig.MaxSpeed.ToString("0"); comboBoxLugdownZsj.Text = lugdownconfig.Zsj; comboBoxLugdownZsjCom.Text = lugdownconfig.Zsjck; checkBoxLugdownSureTemp.Checked = lugdownconfig.IfSureTemp; checkBoxLugdownZsPd.Checked = lugdownconfig.isFdjzsJudge; checkBoxLugdownYw.Checked = lugdownconfig.IsTestYw; comboBoxYWJ_LUGDOWN.Text = lugdownconfig.Ywj; radioButtonLugMaxHpGlsm.Checked = (lugdownconfig.LugdownMaxHpStyle == 0); radioButtonLugMaxHpVelmaxhp.Checked = (lugdownconfig.LugdownMaxHpStyle == 1); radioButtonLugdown_MaxRPM_SD.Checked = (lugdownconfig.maxRPMStyle == 0); radioButtonLugdown_MaxRPM_KD.Checked = (lugdownconfig.maxRPMStyle == 1); if (lugdownconfig.Glsmms == "恒功率") { radioButtonLugdownHgl.Checked = true; radioButtonLugdownhs.Checked = false; } else { radioButtonLugdownHgl.Checked = false; radioButtonLugdownhs.Checked = true; } textBoxLugdownSmpl.Text = lugdownconfig.Smpl.ToString("0"); checkBoxGSMAXPPD.Checked = lugdownconfig.gsMaxPPD; checkBoxGSKCBPD.Checked = lugdownconfig.gsKcbPD; checkBoxGSKHGPD.Checked = lugdownconfig.gsKhgPD; checkBoxLugdownJcNox.Checked = lugdownconfig.testNOx; checkBoxLugdownGljk.Checked = lugdownconfig.LugdownGljk; textBoxLug_gljk_value.Text = lugdownconfig.Lugdown_Gljk_value.ToString("0"); checkBoxLugdown_glsm_ydjk.Checked = lugdownconfig.isYdjk_glsm; checkBoxLugdown_cl_ydjk.Checked = lugdownconfig.isYdjk_cl; textBoxLugdown_glsm_ydjk.Text = lugdownconfig.ydjk_glsm_value.ToString("0.00"); textBoxLugdown_cl_ydjk.Text = lugdownconfig.ydjk_cl_value.ToString("0.00"); checkBoxLudown_prepare.Checked = lugdownconfig.IsLugdownPrepare; textBoxSdsFlowtime.Text = sdsconfig.FlowTime.ToString("0"); textBoxSdsNdz.Text = sdsconfig.Ndz.ToString("0.0"); textBoxSdsZscc.Text = sdsconfig.Zscc.ToString("0"); checkBoxSdsFlowback.Checked = sdsconfig.Flowback; checkBoxSdsZero.Checked = sdsconfig.IfFqyTl; checkBoxSdsNdjk.Checked = sdsconfig.ConcentrationMonitor; checkBoxSdsZsjk.Checked = sdsconfig.RotateSpeedMonitor; comboBoxSdsZsj.Text = sdsconfig.Zsj; comboBoxSdsZsjCom.Text = sdsconfig.Zsjck; checkBoxSdsYw.Checked = sdsconfig.IsTestYw; comboBoxYWJ_SDS.Text = sdsconfig.Ywj; comboBox3500.SelectedIndex = sdsconfig.TimerMode3500; comboBoxHPrepare.SelectedIndex = sdsconfig.TimerModeHP; comboBoxHTest.SelectedIndex = sdsconfig.TimerModeHT; comboBoxLPrepare.SelectedIndex = sdsconfig.TimerModeLP; comboBoxLTest.SelectedIndex = sdsconfig.TimerModeLT; checkBoxSdsSureTemp.Checked = sdsconfig.IsSureTemp; checkBoxSds_norezero.Checked = sdsconfig.sdsNoReZero; checkBoxLAMBDA_HIGH.Checked = sdsconfig.sdsHighLambdaMonitor; checkBoxLAMBDA_LOW.Checked = sdsconfig.sdsLowLambdaMonitor; textBoxBtgDyzs.Text = btgconfig.Dyzs.ToString("0"); checkBoxBtgZsjk.Checked = btgconfig.RotateSpeedMonitor; comboBoxBtgZsj.Text = btgconfig.Zsj; comboBoxBtgZsjCom.Text = btgconfig.Zsjck; checkBoxBtgYw.Checked = btgconfig.IsTestYw; comboBoxBTGCFCS.Text = btgconfig.Btgcfcs.ToString(); comboBoxBTGCLCS.Text = btgconfig.btgclcs.ToString(); checkBoxBtgManualTantou.Checked = btgconfig.BtgManualTantou; checkBoxBTGJHGCJK.Checked = btgconfig.jhzsgcjk; comboBoxYWJ_BTG.Text = btgconfig.Ywj; if (btgconfig.btgDszsValue == 0) { radioButtonBTGDSZS.Checked = true; } else { radioButtonBTGDYZS.Checked = true; } checkBoxBtg_cl_ydjk.Checked = btgconfig.isYdjk; textBoxBtg_cl_ydjk.Text = btgconfig.ydjk_value.ToString("0.00"); comboBoxDynZsj.Text = dynconfig.Zsj; comboBoxDynZsjCk.Text = dynconfig.Zsjck; textBoxDynZs.Text = dynconfig.cczs.ToString("0"); textBoxDynZsTime.Text = dynconfig.stableTime.ToString("0"); textBoxDynForceTime.Text = dynconfig.forceTime.ToString("0"); textBoxFuelForceTime.Text = dynconfig.FuelforceTime.ToString("0"); textBoxFuelForceQj.Text = dynconfig.FuelForceQj.ToString("0"); textBoxFuelSdQj.Text = dynconfig.FuelSdQj.ToString("0.0"); textBoxDynForceQj.Text = dynconfig.DynForceQj.ToString("0"); radioButtonDynZdyk.Checked = (dynconfig.DynYkStyle == 0); radioButtonDynWjyk.Checked = (dynconfig.DynYkStyle == 1); comboBoxDynYkTd.Text = dynconfig.DynWjyktd.ToString(); radioButtonDynReStartForm15.Checked = (dynconfig.DynReStartStyle == 1); radioButtonDynReStartFrom60.Checked = (dynconfig.DynReStartStyle == 0); checkBoxDynGddw.Checked = dynconfig.DynUseGddw; checkBoxDynYkdw.Checked = dynconfig.DynUseYkdw; textBoxDynGddwTime.Text = dynconfig.DynGddwTime.ToString("0"); checkBoxDynJkYh.Checked = dynconfig.DynFuelJk; textBoxDynYhxz.Text = dynconfig.DynFuelXz.ToString("0.00"); textBoxFuelTestFjcs.Text = dynconfig.FuelTestFjjs.ToString("0"); textBoxDynSdqj.Text = dynconfig.DynSdqj.ToString("0.0"); textBoxDynMaxWaitTime.Text = dynconfig.DynMaxWaitTime.ToString("0"); textBoxDynVwSdqj.Text = dynconfig.DynVwSdqj.ToString("0.0"); textBoxDynYkKey.Text = dynconfig.DynYkKey; radioButtonDynFileJson.Checked = (dynconfig.DynFileStyle == 0); radioButtonDynFileIni.Checked = (dynconfig.DynFileStyle == 1); checkBoxDynStopUnstable.Checked = dynconfig.DynStopUnstable; textBoxDynUnstableTime.Text = dynconfig.DynUnstableTime.ToString(); checkBoxDYNTL.Checked = dynconfig.DynTl; checkBoxDynBackTest.Checked = dynconfig.DynBackTest; checkBoxDynCO2Test.Checked = dynconfig.DynCO2Test; checkBoxDynFlowBack.Checked = dynconfig.DynFlowBack; checkBoxDynYkqr.Checked = dynconfig.DynYkqr; checkBoxDynManulKey.Checked = dynconfig.DynUseManualKey; comboBoxBPQCOM.Text = equipconfig.BpqCom; comboBoxBPQDY.Text = equipconfig.BpqDy.ToString(); comboBoxBPQFS.Text = equipconfig.BpqMethod; comboBoxBPQXH.Text = equipconfig.BpqXh; comboBoxFAN.Text = equipconfig.HeatFan.ToString(); comboBoxEmergency.Text = equipconfig.EmergencyStop.ToString(); if (equipconfig.Cgjifpz == false) { comboBoxCgjxh.Text = "无"; } else { comboBoxCgjxh.Text = equipconfig.Cgjxh; } comboBoxCgjck.Text = equipconfig.Cgjck; if (equipconfig.Fqyifpz == false) { comboBoxFqyxh.Text = "无"; } else { comboBoxFqyxh.Text = equipconfig.Fqyxh; } comboBoxFqyck.Text = equipconfig.Fqyck; if (equipconfig.Ydjifpz == false) { comboBoxYdjxh.Text = "无"; } else { comboBoxYdjxh.Text = equipconfig.Ydjxh; } checkBoxOldMqy200.Checked = equipconfig.IsOldMqy200; comboBoxYdjck.Text = equipconfig.Ydjck; if (equipconfig.Lzydjifpz == false) { comboBoxLZYDJXH.Text = "无"; } else { comboBoxLZYDJXH.Text = equipconfig.Lzydjxh; } comboBoxLZYDJCK.Text = equipconfig.Lzydjck; if (equipconfig.Lljifpz == false) { comboBoxLljxh.Text = "无"; } else { comboBoxLljxh.Text = equipconfig.Lljxh; } comboBoxLljck.Text = equipconfig.Lljck; if (equipconfig.isYhyPz == false) { comboBoxYhyxh.Text = "无"; } else { comboBoxYhyxh.Text = equipconfig.YhyXh; } comboBoxYhyck.Text = equipconfig.YhyCk; if (equipconfig.NOxifpz == false) { comboBoxNOxXh.Text = "无"; } else { comboBoxNOxXh.Text = equipconfig.NOxXh; } comboBoxNOxCk.Text = equipconfig.NOxCk; if (equipconfig.Ledifpz == false) { comboBoxLEDck.Text = "未配置"; } else { comboBoxLEDck.Text = equipconfig.Ledck; } comboBoxCOMXCE.Text = equipconfig.Xce100ck; comboBoxXCECOMSTRING.Text = equipconfig.Xce100Comstring; comboBoxLEDXH.Text = equipconfig.Ledxh; comboBoxLEDCOMSTRING.Text = equipconfig.LedComstring; comboBoxTemp.Text = equipconfig.TempInstrument; comboBoxCgjckpzz.Text = equipconfig.cgjckpzz; comboBoxFqyckppz.Text = equipconfig.Fqyckpzz; comboBoxYdjckppz.Text = equipconfig.Ydjckpzz; comboBoxLljckpzz.Text = equipconfig.Lljckpzz; comboBoxYhyckpz.Text = equipconfig.YhjCkpz; comboBoxNOxCkpz.Text = equipconfig.NOxCkpz; comboBoxLZCKPZZ.Text = equipconfig.Lzckpzz; comboBoxDriverScreen.SelectedIndex = equipconfig.DriverDisplay; comboBoxDisplayMethod.Text = equipconfig.DisplayMethod; comboBoxDriveFbl.SelectedIndex = equipconfig.DriverFbl; textBoxFqyxysj.Text = equipconfig.FqyDelayTime.ToString(); textBoxLLjO2xysj.Text = equipconfig.LljDelayTime.ToString(); textBoxLLjLlmyz.Text = equipconfig.Lljllmy.ToString(); textBoxLugdownWdsj.Text = equipconfig.LugdownWdsj.ToString(); comboBoxWorkMode.SelectedIndex = (equipconfig.WorkAutomaticMode ? 0 : 1); textBoxBrakePWM.Text = equipconfig.BrakePWM.ToString(); textBoxYdjL.Text = equipconfig.YdjL.ToString(); comboBoxCgjNz.SelectedIndex = equipconfig.CgjNz; comboBoxCarGd.Text = equipconfig.CarGdChanel.ToString(); checkBoxGdyk.Checked = equipconfig.isIgbtContainGdyk; checkBoxIsFqyNhSelfUse.Checked = equipconfig.isFqyNhSelfUse; checkBoxIsYdjNhSelfUse.Checked = equipconfig.isYdjNhSelfUse; checkBoxIsLljNhSelfUse.Checked = equipconfig.isLljNhSelfUse; comboBoxLEDROW1.Text = equipconfig.ledrow1.ToString(); comboBoxLEDROW2.Text = equipconfig.ledrow2.ToString(); comboBoxLEDTJPH.Text = equipconfig.LEDTJPH.ToString(); checkBoxDisplayJudge.Checked = equipconfig.displayJudge; textBoxLZYDJADD.Text = equipconfig.lzydjadd; textBoxBackGroundTime.Text = equipconfig.BackGroundTestTime.ToString(); textBoxCanliHCTime.Text = equipconfig.CanliHCTestTime.ToString(); checkBoxUseWeightWCF.Checked = equipconfig.useWeightWCF; textBoxWeightWCF.Text = equipconfig.WeightWCFaddress; checkBoxJHJK.Checked = equipconfig.useJHJK; checkBoxJH_SCREEN.Checked = equipconfig.useJHSCREEN; textBoxJHLBGLYJZ.Text = equipconfig.JHLBGLB.ToString("0"); textBoxJHLAMBDAMIN.Text = equipconfig.JHLAMBDAMIN.ToString("0.00"); textBoxJHLAMBDAMAX.Text = equipconfig.JHLAMBDAMAX.ToString("0.00"); comboBoxDataSecondsType.Text = equipconfig.DATASECONDS_TYPE; /*comboBoxZZYXH.Text = equipconfig.ZzyXh; * comboBoxZZYCK.Text = equipconfig.ZzyCk; * comboBoxZZYCKPZ.Text = equipconfig.ZzyCkpzz; * comboBoxZZSURESTYLE.SelectedIndex = equipconfig.ZzSureStyle; * comboBoxZzGd.Text = equipconfig.ZzGdChanel.ToString(); * comboBoxLEFTZZCHANEL.Text = equipconfig.LeftZzChanel.ToString(); * comboBoxRIGHTZZCHANEL.Text = equipconfig.RightZzChanel.ToString();*/ comboBoxTMQCK.Text = equipconfig.Tmqck; comboBoxTMQPZ.Text = equipconfig.Tmqckpz; comboBoxTMQXH.Text = equipconfig.Tmqxh; checkBoxTPWSD.Checked = equipconfig.isTpTempInstrument; checkBoxCD_FQY.Checked = equipconfig.cd_fqy; checkBoxCD_YDJ.Checked = equipconfig.cd_ydj; checkBoxNHSJZ.Checked = equipconfig.IsUseNhSjz; comboBoxNHSJZ_COM.Text = equipconfig.NhSjz_Com; comboBoxNHSJZ_COMSTRING.Text = equipconfig.NhSjz_ComString; }