private void EditData(DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { sp_MAS304_GetMethodAnalysis_Result row = gvResult.Rows[e.RowIndex].DataBoundItem as sp_MAS304_GetMethodAnalysis_Result; using (MAS304_MethodAnalysisEntry dlg = new MAS304_MethodAnalysisEntry(row)) { if (dlg.ShowDialog(this) == DialogResult.OK) { LoadData(); } } } }
private void AddNew() { try { using (MAS304_MethodAnalysisEntry dlg = new MAS304_MethodAnalysisEntry()) { if (dlg.ShowDialog(this) == DialogResult.OK) { LoadData(); } } } catch (Exception ex) { rMessageBox.ShowException(this, ex); } }