private void btn_NewDSA_Click(object sender, EventArgs e) { frm_DsaAdd newDsa = new frm_DsaAdd(); newDsa.FormClosing += new FormClosingEventHandler(this.RefreshView); newDsa.Show(); }
private void dgv_Dsas_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int r = e.RowIndex; if (r > -1) { try { int docID = (int)dgv_Dsas.Rows[r].Cells["DocumentID"].Value; frm_DsaAdd editDsa = new frm_DsaAdd(docID); editDsa.Show(); } catch (Exception ex) { MessageBox.Show("Please double click on a data row to open DSA record." + Environment.NewLine + ex); } } }