private void btn_add_Click(object sender, EventArgs e) { oper = 1; FrmDictDialog frm = new FrmDictDialog(ReLoad, cmb_dictype.Text); frm.ShowDialog(); }
private void btn_modi_Click(object sender, EventArgs e) { oper = 2; int row = dgv.SelectedCells[0].RowIndex; int id = (int)dgv["id", row].Value; Sysdic sysdic = sysdics.First(s => s.id == id); if (sysdic != null) { FrmDictDialog frm = new FrmDictDialog(ReLoad, sysdic); frm.Show(); } }