private void LoadKtruBox(r_enstru enstr) { textBoxX4.Text = enstr.code; textBoxX5.Text = enstr.name_kz; textBoxX6.Text = enstr.name_ru; textBoxX7.Text = enstr.desc_kz; textBoxX8.Text = enstr.desc_ru; textBoxX11.Text = enstr.edizm; }
private void button3_Click(object sender, EventArgs e) { if (dataGridViewX1.CurrentRow != null) { var ens = dataGridViewX1.CurrentRow.DataBoundItem as r_enstru; Enstru = rep.GetListWhere(n => n.id == ens.id).SingleOrDefault(); ktru = comboBox1.SelectedValue.ToString(); this.DialogResult = DialogResult.OK; } }