private async void btnAddUser_Click(object sender, EventArgs e) { var frm = new frmUserDetails(); if (frm.ShowDialog() == DialogResult.OK) { await loadUsers(); } }
private async void DgvUsers_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int id = int.Parse(dgvUsers.SelectedRows[0].Cells["Id"].Value.ToString()); var frm = new frmUserDetails(id); if (frm.ShowDialog() == DialogResult.OK) { await loadUsers(); } }