private void AddNew() { MAS101_UserEntry dlg = new MAS101_UserEntry(); if (dlg.ShowDialog(this) == DialogResult.OK) { LoadData(); } }
private void gvResult_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { sp_MAS101_GetUser_Result user = gvResult.Rows[e.RowIndex].DataBoundItem as sp_MAS101_GetUser_Result; MAS101_UserEntry dlg = new MAS101_UserEntry(user); if (dlg.ShowDialog(this) == DialogResult.OK) { LoadData(); } } }