public void fillVoData(VariousVoltage vo)
 {
     if (textBox1.Text != string.Empty)
         vo.RecFilterRatedVoltage = Convert.ToDouble(textBox1.Text);
     if (textBox2.Text != string.Empty)
         vo.InvFilterRatedVoltage = Convert.ToDouble(textBox2.Text);
     if (textBox6.Text != string.Empty)
         vo.RecRatedVoltage = Convert.ToDouble(textBox6.Text);
     if (textBox7.Text != string.Empty)
         vo.RecMaxVoltage = Convert.ToDouble(textBox7.Text);
     if (textBox8.Text != string.Empty)
         vo.RecMinVoltage = Convert.ToDouble(textBox8.Text);
     if (textBox9.Text != string.Empty)
         vo.RecExtremelyMinVoltage = Convert.ToInt32(textBox9.Text);
     if (textBox12.Text != string.Empty)
         vo.InvRatedVoltage = Convert.ToDouble(textBox12.Text);
     if (textBox11.Text != string.Empty)
         vo.InvMaxVoltage = Convert.ToDouble(textBox11.Text);
     if (textBox10.Text != string.Empty)
         vo.InvMinVoltage = Convert.ToDouble(textBox10.Text);
     if (textBox5.Text != string.Empty)
         vo.InvExtremelyMinVoltage = Convert.ToDouble(textBox5.Text);
     if (textBox4.Text != string.Empty)
         vo.RecACSysRate = Convert.ToDouble(textBox4.Text);
     if (textBox3.Text != string.Empty)
         vo.InvACSysRate = Convert.ToDouble(textBox3.Text);
 }
 public void bingindUiData(VariousVoltage vo)
 {
     textBox1.Text = StringUtil.Zero2Text(vo.RecFilterRatedVoltage);
     textBox2.Text = StringUtil.Zero2Text(vo.InvFilterRatedVoltage);
     textBox6.Text = StringUtil.Zero2Text(vo.RecRatedVoltage);
     textBox7.Text = StringUtil.Zero2Text(vo.RecMaxVoltage);
     textBox8.Text = StringUtil.Zero2Text(vo.RecMinVoltage);
     textBox9.Text = StringUtil.Zero2Text(vo.RecExtremelyMinVoltage);
     textBox12.Text = StringUtil.Zero2Text(vo.InvRatedVoltage);
     textBox11.Text = StringUtil.Zero2Text(vo.RecFilterRatedVoltage);
     textBox10.Text = StringUtil.Zero2Text(vo.InvMinVoltage);
     textBox5.Text = StringUtil.Zero2Text(vo.InvExtremelyMinVoltage);
     textBox4.Text = StringUtil.Zero2Text(vo.RecACSysRate);
     textBox3.Text = StringUtil.Zero2Text(vo.InvACSysRate);
 }