コード例 #1
0
 public void BingindUiData(SpecialParameter vo)
 {
     checkBox1.Checked = vo.IsSingleCalc;
     checkBox2.Checked = vo.IsManuallyConfig;
     textBox1.Text = StringUtil.Zero2Text(vo.DCPwoer);
     textBox2.Text = StringUtil.Zero2Text(vo.DCVoltage);
     textBox3.Text = StringUtil.Zero2Text(vo.DCElectricCurrent);
     textBox6.Text = StringUtil.Zero2Text(vo.BeginLoad);
     textBox5.Text = StringUtil.Zero2Text(vo.LoadChangeSteps);
     textBox4.Text = StringUtil.Zero2Text(vo.LoadNumber);
 }
コード例 #2
0
 public void fillVoData(SpecialParameter vo)
 {
     vo.IsSingleCalc = checkBox1.Checked;
     vo.IsManuallyConfig = checkBox2.Checked;
     if (textBox1.Text != string.Empty)
         vo.DCPwoer = Convert.ToDouble(textBox1.Text);
     if (textBox2.Text != string.Empty)
         vo.DCVoltage = Convert.ToDouble(textBox2.Text);
     if (textBox3.Text != string.Empty)
         vo.DCElectricCurrent = Convert.ToDouble(textBox3.Text);
     if (textBox6.Text != string.Empty)
         vo.BeginLoad = Convert.ToDouble(textBox6.Text);
     if (textBox5.Text != string.Empty)
         vo.LoadChangeSteps = Convert.ToDouble(textBox5.Text);
     if (textBox4.Text != string.Empty)
         vo.LoadNumber = Convert.ToDouble(textBox4.Text);
 }