public void ReadPump() { try { comboBox1.Text = RWcofing.readini("PumpType"); numericUpDown36.Value = Convert.ToDecimal(RWcofing.readini("A_pumpDensity")); numericUpDown37.Value = Convert.ToDecimal(RWcofing.readini("A_equivalent")); numericUpDown38.Value = Convert.ToDecimal(RWcofing.readini("B_pumpDensity")); numericUpDown39.Value = Convert.ToDecimal(RWcofing.readini("B_equivalent")); numericUpDown40.Value = Convert.ToDecimal(RWcofing.readini("A_ratio")); numericUpDown41.Value = Convert.ToDecimal(RWcofing.readini("B_ratio")); } catch (Exception ex) { } }
private void readIO_name() { //mypruject.data.Cofing cf = new data.Cofing(Global.IO_text, "input"); Data.RWcofing cf = new Data.RWcofing(Global.IO_text, "input"); textBox35.Text = cf.readini("0"); textBox36.Text = cf.readini("1"); textBox37.Text = cf.readini("2"); textBox38.Text = cf.readini("3"); textBox39.Text = cf.readini("4"); textBox40.Text = cf.readini("5"); textBox41.Text = cf.readini("6"); textBox42.Text = cf.readini("7"); cf.group = "output"; textBox27.Text = cf.readini("0"); textBox28.Text = cf.readini("1"); textBox29.Text = cf.readini("2"); textBox30.Text = cf.readini("3"); textBox31.Text = cf.readini("4"); textBox32.Text = cf.readini("5"); textBox33.Text = cf.readini("6"); textBox34.Text = cf.readini("7"); }