private bool DDX(bool bUpdate) { bool rc = true; // try { //--- DDV.DDX(bUpdate, this.textBox10, ref m_ss.SEN_SCL_MAX[0]); DDV.DDX(bUpdate, this.textBox11, ref m_ss.SEN_SCL_MIN[0]); DDV.DDX(bUpdate, this.textBox12, ref m_ss.SEN_SCL_MAX[1]); DDV.DDX(bUpdate, this.textBox13, ref m_ss.SEN_SCL_MIN[1]); DDV.DDX(bUpdate, this.textBox14, ref m_ss.SEN_SCL_MAX[2]); DDV.DDX(bUpdate, this.textBox15, ref m_ss.SEN_SCL_MIN[2]); DDV.DDX(bUpdate, this.textBox16, ref m_ss.SEN_SCL_MAX[3]); DDV.DDX(bUpdate, this.textBox17, ref m_ss.SEN_SCL_MIN[3]); DDV.DDX(bUpdate, this.textBox18, ref m_ss.SEN_SCL_MAX[4]); DDV.DDX(bUpdate, this.textBox19, ref m_ss.SEN_SCL_MIN[4]); DDV.DDX(bUpdate, this.textBox20, ref m_ss.SEN_SCL_MAX[5]); DDV.DDX(bUpdate, this.textBox21, ref m_ss.SEN_SCL_MIN[5]); DDV.DDX(bUpdate, this.textBox22, ref m_ss.SEN_SCL_MAX[6]); DDV.DDX(bUpdate, this.textBox23, ref m_ss.SEN_SCL_MIN[6]); DDV.DDX(bUpdate, this.textBox24, ref m_ss.SEN_SCL_MAX[7]); DDV.DDX(bUpdate, this.textBox25, ref m_ss.SEN_SCL_MIN[7]); DDV.DDX(bUpdate, this.textBox26, ref m_ss.SEN_SCL_MAX[8]); DDV.DDX(bUpdate, this.textBox27, ref m_ss.SEN_SCL_MIN[8]); DDV.DDX(bUpdate, this.textBox28, ref m_ss.SEN_SCL_MAX[9]); DDV.DDX(bUpdate, this.textBox29, ref m_ss.SEN_SCL_MIN[9]); DDV.DDX(bUpdate, this.textBox30, ref m_ss.SEN_SCL_MAX[10]); DDV.DDX(bUpdate, this.textBox31, ref m_ss.SEN_SCL_MIN[10]); DDV.DDX(bUpdate, this.textBox32, ref m_ss.SEN_SCL_MAX[11]); DDV.DDX(bUpdate, this.textBox33, ref m_ss.SEN_SCL_MIN[11]); DDV.DDX(bUpdate, this.textBox34, ref m_ss.SEN_SCL_MAX[12]); DDV.DDX(bUpdate, this.textBox35, ref m_ss.SEN_SCL_MIN[12]); DDV.DDX(bUpdate, this.textBox36, ref m_ss.SEN_SCL_MAX[13]); DDV.DDX(bUpdate, this.textBox37, ref m_ss.SEN_SCL_MIN[13]); DDV.DDX(bUpdate, this.textBox38, ref m_ss.SEN_SCL_MAX[14]); DDV.DDX(bUpdate, this.textBox39, ref m_ss.SEN_SCL_MIN[14]); DDV.DDX(bUpdate, this.textBox40, ref m_ss.SEN_SCL_MAX[15]); DDV.DDX(bUpdate, this.textBox41, ref m_ss.SEN_SCL_MIN[15]); DDV.DDX(bUpdate, this.textBox42, ref m_ss.SEN_SCL_MAX[16]); DDV.DDX(bUpdate, this.textBox43, ref m_ss.SEN_SCL_MIN[16]); DDV.DDX(bUpdate, this.textBox44, ref m_ss.SEN_SCL_MAX[17]); DDV.DDX(bUpdate, this.textBox45, ref m_ss.SEN_SCL_MIN[17]); DDV.DDX(bUpdate, this.textBox46, ref m_ss.SEN_SCL_MAX[18]); DDV.DDX(bUpdate, this.textBox47, ref m_ss.SEN_SCL_MIN[18]); //ADC基準 //ADC基準 DDV.DDX(bUpdate, this.textBox48, ref m_ss.SEN_SCL_MAX[20]); DDV.DDX(bUpdate, this.textBox49, ref m_ss.SEN_SCL_MIN[20]); DDV.DDX(bUpdate, this.textBox50, ref m_ss.SEN_SCL_MAX[21]); DDV.DDX(bUpdate, this.textBox51, ref m_ss.SEN_SCL_MIN[21]); //----- rc = true; } catch (Exception e) { G.mlog(e.Message); rc = false; } return(rc); }
private bool DDX(bool bUpdate) { bool rc; try { //--- DDV.DDX(bUpdate, new RadioButton[] { this.radioButton5, this.radioButton6, this.radioButton7, this.radioButton8 } , ref m_sp.MES_MES_CND); DDV.DDX(bUpdate, this.numericUpDown2, ref m_sp.MES_MES_VRC); //--- DDV.DDX(bUpdate, this.numericUpDown3, ref m_sp.MES_MES_VRB); //--- rc = true; } catch (Exception e) { G.mlog(e.Message); rc = false; } return(rc); }
private bool DDX(bool bUpdate) { bool rc = false; // try { DDV.DDX(bUpdate, this.checkBox1, ref m_sp.LED_LGT_CHK); // DDV.DDX(bUpdate, new RadioButton[] {this.radioButton1, this.radioButton2} // , ref m_sp.LED_LGT_OPT ); DDV.DDX(bUpdate, this.comboBox20, ref m_sp.LED_LGT_OPT); //--- DDV.DDX(bUpdate, this.comboBox1, ref m_sp.LED_LGT_SEN[0]); DDV.DDX(bUpdate, this.comboBox3, ref m_sp.LED_LGT_SEN[1]); DDV.DDX(bUpdate, this.comboBox5, ref m_sp.LED_LGT_SEN[2]); //--- DDV.DDX(bUpdate, this.textBox1, ref m_sp.LED_LGT_VAL[0]); DDV.DDX(bUpdate, this.textBox2, ref m_sp.LED_LGT_VAL[1]); DDV.DDX(bUpdate, this.textBox3, ref m_sp.LED_LGT_VAL[2]); //--- DDV.DDX(bUpdate, this.comboBox2, ref m_sp.LED_LGT_CND[0]); DDV.DDX(bUpdate, this.comboBox4, ref m_sp.LED_LGT_CND[1]); DDV.DDX(bUpdate, this.comboBox6, ref m_sp.LED_LGT_CND[2]); //--- DDV.DDX(bUpdate, this.checkBox2, ref m_sp.LED_OFF_CHK); // DDV.DDX(bUpdate, new RadioButton[] {this.radioButton3, this.radioButton4} // , ref m_sp.LED_OFF_OPT ); DDV.DDX(bUpdate, this.comboBox21, ref m_sp.LED_OFF_OPT); //--- DDV.DDX(bUpdate, this.comboBox7, ref m_sp.LED_OFF_SEN[0]); DDV.DDX(bUpdate, this.comboBox9, ref m_sp.LED_OFF_SEN[1]); DDV.DDX(bUpdate, this.comboBox11, ref m_sp.LED_OFF_SEN[2]); //--- DDV.DDX(bUpdate, this.textBox4, ref m_sp.LED_OFF_VAL[0]); DDV.DDX(bUpdate, this.textBox5, ref m_sp.LED_OFF_VAL[1]); DDV.DDX(bUpdate, this.textBox6, ref m_sp.LED_OFF_VAL[2]); //--- DDV.DDX(bUpdate, this.comboBox8, ref m_sp.LED_OFF_CND[0]); DDV.DDX(bUpdate, this.comboBox10, ref m_sp.LED_OFF_CND[1]); DDV.DDX(bUpdate, this.comboBox12, ref m_sp.LED_OFF_CND[2]); //--- DDV.DDX(bUpdate, this.comboBox13, ref m_sp.LCD_FRE_TOP); DDV.DDX(bUpdate, this.comboBox14, ref m_sp.LCD_FRE_BTM); DDV.DDX(bUpdate, this.textBox7, ref m_sp.LCD_FRE_STP, 8); DDV.DDX(bUpdate, this.textBox8, ref m_sp.LCD_FRE_SBT, 8); DDV.DDX(bUpdate, this.comboBox15, ref m_sp.LCD_LCK_TOP); DDV.DDX(bUpdate, this.comboBox16, ref m_sp.LCD_LCK_BTM); DDV.DDX(bUpdate, this.textBox9, ref m_sp.LCD_LCK_STP, 8); DDV.DDX(bUpdate, this.textBox10, ref m_sp.LCD_LCK_SBT, 8); DDV.DDX(bUpdate, this.comboBox17, ref m_sp.LCD_MES_TOP); DDV.DDX(bUpdate, this.comboBox18, ref m_sp.LCD_MES_BTM); DDV.DDX(bUpdate, this.textBox11, ref m_sp.LCD_MES_STP, 8); DDV.DDX(bUpdate, this.textBox12, ref m_sp.LCD_MES_SBT, 8); //--- DDV.DDX(bUpdate, this.comboBox19, ref m_sp.MES_USE_SEN); DDV.DDX(bUpdate, this.textBox13, ref m_sp.MES_FRE_PRS); //--- DDV.DDX(bUpdate, this.textBox14, ref m_sp.MES_LCK_PRS); //--- DDV.DDX(bUpdate, this.textBox15, ref m_sp.MES_MES_PRS); //--- DDV.DDX(bUpdate, this.textBox16, ref m_sp.MES_LCK_TOT); //--- DDV.DDX(bUpdate, new RadioButton[] { this.radioButton5, this.radioButton6, this.radioButton7, this.radioButton8 } , ref m_sp.MES_MES_CND); DDV.DDX(bUpdate, this.textBox17, ref m_sp.MES_MES_VRD); //--- DDV.DDX(bUpdate, this.textBox18, ref m_sp.MES_MES_VRC); //--- DDV.DDX(bUpdate, this.textBox19, ref m_sp.MES_MES_VRB); //--- DDV.DDX(bUpdate, this.textBox30, ref m_sp.MES_MES_VRS); //--- DDV.DDX(bUpdate, this.textBox31, ref m_sp.MES_MES_VRE); //--- DDV.DDX(bUpdate, this.textBox20, ref m_sp.MES_MES_WAI); //--- DDV.DDX(bUpdate, this.textBox21, ref m_sp.MES_MES_TOT); //--- //--- DDV.DDX(bUpdate, this.textBox22, ref m_sp.BAT_WRN_VOL); //--- DDV.DDX(bUpdate, this.textBox23, ref m_sp.BAT_HLT_VOL); //--- //--- DDV.DDX(bUpdate, this.comboBox22, ref m_ss.ETC_UIF_LEVL); //--- if (bUpdate) { DDV.DDX(bUpdate, this.textBox24, ref m_sp.ROM_DAT_STA); //--- DDV.DDX(bUpdate, this.textBox25, ref m_sp.ROM_DAT_END); //--- } #if true //2019.02.12(release button time) DDV.DDX(bUpdate, this.textBox26, ref m_sp.MES_LCK_REL); //--- DDV.DDX(bUpdate, this.textBox27, ref m_sp.BZR_PAT_REL, 16); DDV.DDX(bUpdate, this.textBox28, ref m_sp.BZR_PAT_STA, 16); DDV.DDX(bUpdate, this.textBox29, ref m_sp.BZR_PAT_END, 16); #endif //--- rc = true; } catch (Exception e) { G.mlog(e.Message); rc = false; } return(rc); }
private bool DDX(bool bUpdate) { bool rc = false; // try { #if true DDV.DDX(bUpdate, this.textBox4, ref m_sp.DEV_ID); #else if (bUpdate) { string buf = ""; for (int i = 0; i < m_sp.DEV_ID.Length; i++) { if (m_sp.DEV_ID[i] < 0x20 || m_sp.DEV_ID[i] > 0x7E) { break; } buf += (char)m_sp.DEV_ID[i]; } this.textBox4.Text = buf; } else { string buf = this.textBox4.Text; for (int i = 0; i < m_sp.DEV_ID.Length; i++) { m_sp.DEV_ID[i] = 0x00; } for (int i = 0; i < buf.Length && i < m_sp.DEV_ID.Length; i++) { m_sp.DEV_ID[i] = (byte)buf[i]; } } #endif DDV.DDX(bUpdate, this.numericUpDown1, ref m_integ); DDV.DDX(bUpdate, this.comboBox2, ref m_sp.D29_0F0_GAIN); //--- DDV.DDX(bUpdate, this.comboBox3, ref m_sp.D76_F20_HUMI); DDV.DDX(bUpdate, this.comboBox4, ref m_sp.D76_F42_PRES); DDV.DDX(bUpdate, this.comboBox5, ref m_sp.D76_F45_TEMP); DDV.DDX(bUpdate, this.comboBox6, ref m_sp.D76_F52_FILT); DDV.DDX(bUpdate, this.comboBox7, ref m_sp.D76_F55_STBY); //--- DDV.DDX(bUpdate, this.numericUpDown4, ref m_sp.D68_190_SMRT); DDV.DDX(bUpdate, this.comboBox8, ref m_sp.D68_1A0_GLPF); DDV.DDX(bUpdate, this.comboBox9, ref m_sp.D68_1B3_GSCL); DDV.DDX(bUpdate, this.comboBox10, ref m_sp.D68_1D0_ALPF); DDV.DDX(bUpdate, this.comboBox11, ref m_sp.D68_1C3_ASCL); //--- DDV.DDX(bUpdate, this.comboBox12, ref m_sp.D38_410_MSTM[0]); DDV.DDX(bUpdate, this.comboBox13, ref m_sp.D38_424_ALG1[0]); DDV.DDX(bUpdate, this.comboBox14, ref m_sp.D38_422_ALG2[0]); DDV.DDX(bUpdate, this.comboBox15, ref m_sp.D38_420_LEDC[0]); DDV.DDX(bUpdate, this.comboBox16, ref m_sp.D38_434_PSG0[0]); //--- DDV.DDX(bUpdate, this.comboBox17, ref m_sp.D38_410_MSTM[1]); DDV.DDX(bUpdate, this.comboBox18, ref m_sp.D38_424_ALG1[1]); DDV.DDX(bUpdate, this.comboBox19, ref m_sp.D38_422_ALG2[1]); DDV.DDX(bUpdate, this.comboBox20, ref m_sp.D38_420_LEDC[1]); DDV.DDX(bUpdate, this.comboBox21, ref m_sp.D38_434_PSG0[1]); //--- DDV.DDX(bUpdate, this.comboBox22, ref m_sp.D38_410_MSTM[2]); DDV.DDX(bUpdate, this.comboBox23, ref m_sp.D38_424_ALG1[2]); DDV.DDX(bUpdate, this.comboBox24, ref m_sp.D38_422_ALG2[2]); DDV.DDX(bUpdate, this.comboBox25, ref m_sp.D38_420_LEDC[2]); DDV.DDX(bUpdate, this.comboBox26, ref m_sp.D38_434_PSG0[2]); //--- DDV.DDX(bUpdate, this.numericUpDown2, ref m_duty[0]); DDV.DDX(bUpdate, this.numericUpDown3, ref m_duty[1]); //--- DDV.DDX(bUpdate, this.textBox76, ref m_sp.ADC_COF_GRD[1]); DDV.DDX(bUpdate, this.textBox1, ref m_sp.ADC_COF_OFS[1]); //--- DDV.DDX(bUpdate, this.textBox3, ref m_sp.ADC_COF_GRD[2]); DDV.DDX(bUpdate, this.textBox2, ref m_sp.ADC_COF_OFS[2]); //--- DDV.DDX(bUpdate, this.textBox10, ref m_sp.SEN_COF_GRD[0]); DDV.DDX(bUpdate, this.textBox11, ref m_sp.SEN_COF_OFS[0]); DDV.DDX(bUpdate, this.textBox12, ref m_sp.SEN_COF_GRD[1]); DDV.DDX(bUpdate, this.textBox13, ref m_sp.SEN_COF_OFS[1]); DDV.DDX(bUpdate, this.textBox14, ref m_sp.SEN_COF_GRD[2]); DDV.DDX(bUpdate, this.textBox15, ref m_sp.SEN_COF_OFS[2]); DDV.DDX(bUpdate, this.textBox16, ref m_sp.SEN_COF_GRD[3]); DDV.DDX(bUpdate, this.textBox17, ref m_sp.SEN_COF_OFS[3]); DDV.DDX(bUpdate, this.textBox18, ref m_sp.SEN_COF_GRD[4]); DDV.DDX(bUpdate, this.textBox19, ref m_sp.SEN_COF_OFS[4]); DDV.DDX(bUpdate, this.textBox20, ref m_sp.SEN_COF_GRD[5]); DDV.DDX(bUpdate, this.textBox21, ref m_sp.SEN_COF_OFS[5]); DDV.DDX(bUpdate, this.textBox22, ref m_sp.SEN_COF_GRD[6]); DDV.DDX(bUpdate, this.textBox23, ref m_sp.SEN_COF_OFS[6]); DDV.DDX(bUpdate, this.textBox24, ref m_sp.SEN_COF_GRD[7]); DDV.DDX(bUpdate, this.textBox25, ref m_sp.SEN_COF_OFS[7]); DDV.DDX(bUpdate, this.textBox26, ref m_sp.SEN_COF_GRD[8]); DDV.DDX(bUpdate, this.textBox27, ref m_sp.SEN_COF_OFS[8]); DDV.DDX(bUpdate, this.textBox28, ref m_sp.SEN_COF_GRD[9]); DDV.DDX(bUpdate, this.textBox29, ref m_sp.SEN_COF_OFS[9]); DDV.DDX(bUpdate, this.textBox30, ref m_sp.SEN_COF_GRD[10]); DDV.DDX(bUpdate, this.textBox31, ref m_sp.SEN_COF_OFS[10]); DDV.DDX(bUpdate, this.textBox32, ref m_sp.SEN_COF_GRD[11]); DDV.DDX(bUpdate, this.textBox33, ref m_sp.SEN_COF_OFS[11]); DDV.DDX(bUpdate, this.textBox34, ref m_sp.SEN_COF_GRD[12]); DDV.DDX(bUpdate, this.textBox35, ref m_sp.SEN_COF_OFS[12]); DDV.DDX(bUpdate, this.textBox36, ref m_sp.SEN_COF_GRD[13]); DDV.DDX(bUpdate, this.textBox37, ref m_sp.SEN_COF_OFS[13]); DDV.DDX(bUpdate, this.textBox38, ref m_sp.SEN_COF_GRD[14]); DDV.DDX(bUpdate, this.textBox39, ref m_sp.SEN_COF_OFS[14]); DDV.DDX(bUpdate, this.textBox40, ref m_sp.SEN_COF_GRD[15]); DDV.DDX(bUpdate, this.textBox41, ref m_sp.SEN_COF_OFS[15]); DDV.DDX(bUpdate, this.textBox42, ref m_sp.SEN_COF_GRD[16]); DDV.DDX(bUpdate, this.textBox43, ref m_sp.SEN_COF_OFS[16]); DDV.DDX(bUpdate, this.textBox44, ref m_sp.SEN_COF_GRD[17]); DDV.DDX(bUpdate, this.textBox45, ref m_sp.SEN_COF_OFS[17]); DDV.DDX(bUpdate, this.textBox46, ref m_sp.SEN_COF_GRD[18]); DDV.DDX(bUpdate, this.textBox47, ref m_sp.SEN_COF_OFS[18]); //ADC基準 //ADC基準 DDV.DDX(bUpdate, this.textBox48, ref m_sp.SEN_COF_GRD[20]); //圧力 DDV.DDX(bUpdate, this.textBox49, ref m_sp.SEN_COF_OFS[20]); //圧力 DDV.DDX(bUpdate, this.textBox50, ref m_sp.SEN_COF_GRD[21]); //電池 DDV.DDX(bUpdate, this.textBox51, ref m_sp.SEN_COF_OFS[21]); //電池 //----- rc = true; } catch (Exception e) { G.mlog(e.Message); rc = false; } return(rc); }