private void dgvUsers_MouseDoubleClick(object sender, MouseEventArgs e) { var id = dgvUsers.SelectedRows[0].Cells[0].Value; frmUserDetails form = new frmUserDetails(int.Parse(id.ToString())); form.Show(); }
private void detailsWindowToolStripMenuItem_Click(object sender, EventArgs e) { frmUserDetails form = new frmUserDetails(); form.ShowDialog(); }