private void btn_Add_Click(object sender, EventArgs e) { Frm_Dictionary_Add frm = new Frm_Dictionary_Add(key, null); if (frm.ShowDialog() == DialogResult.OK) { LoadDataListInstince(key); } }
private void btn_Modify_Click(object sender, EventArgs e) { if (dgv_DataList.SelectedRows.Count == 1) { object id = dgv_DataList.CurrentRow.Cells["id"].Tag; Frm_Dictionary_Add frm = new Frm_Dictionary_Add(key, id); if (frm.ShowDialog() == DialogResult.OK) { LoadDataListInstince(key); } } }