private void txtCmApprover_DoubleClick(object sender, EventArgs e) { UserSearchForm form = new UserSearchForm(); if (form.ShowDialog() == DialogResult.OK) { txtCmApprover.Text = GlobalService.SelectedUser; } }
private void dgvPermission_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 1) { UserSearchForm form = new UserSearchForm(); if (form.ShowDialog() == DialogResult.OK) { dgvPermission.CurrentCell.Value = GlobalService.SelectedUser; dgvPermission.CurrentCell = dgvPermission[2, dgvPermission.CurrentRow.Index]; } } }