private void buttonEdit1_Properties_Click(object sender, EventArgs e) { string kv = str_Power; frmSelectSubByYear frm = new frmSelectSubByYear(1); frm.Power = kv; //if (frm.ShowDialog() == DialogResult.OK) //{ frm.Str_year = str_year; frm.ShowDialog(); if (frm.substat != null) { mc.Text = frm.substat.EleName; //textBox11.Text = frm.line.Length.ToString(); //comboBoxEdit5.Text = frm.line.Voltage.ToString() + "KV"; } //this.Close(); }
private void mc_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { string kv = str_Power; frmSelectSubByYear frm = new frmSelectSubByYear(); frm.Power = kv; //if (frm.ShowDialog() == DialogResult.OK) //{ frm.Str_year = str_year; frm.ShowDialog(); if (frm.substat != null) { mc.Text = frm.substat.EleName; //textBox11.Text = frm.line.Length.ToString(); //comboBoxEdit5.Text = frm.line.Voltage.ToString() + "KV"; textBox5.Text = frm.substat.ObligateField1; textBox7.Text = frm.substat.Number.ToString(); EleID = frm.substat.EleID; } }