private void btnUpdateSelected_Click(object sender, EventArgs e) { if (grdBugs.SelectedRows.Count > 0) { FrmCreateBug frmCreateBug = new FrmCreateBug(); frmCreateBug.BugID = (long)grdBugs.SelectedRows[0].Cells["Id"].Value; frmCreateBug.ShowDialog(); } }
private void btnCreateBug_Click(object sender, EventArgs e) { FrmCreateBug frmCreateBug = new FrmCreateBug(); frmCreateBug.ShowDialog(); }