private void btnDodaj_Click(object sender, EventArgs e) { frmNoviScanIspitaBrojIndeks frm = new frmNoviScanIspitaBrojIndeks(student); frm.ShowDialog(); UcitajSkenove(); }
private void dgvSken_CellContentClick(object sender, DataGridViewCellEventArgs e) { var sken = dgvSken.Rows[e.RowIndex].DataBoundItem as StudentiIspitiScan; if (e.ColumnIndex == 5) { if (MessageBox.Show("Da li ste sigurni?", "?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { _baza.StudentiIspitiScan.Remove(sken); _baza.SaveChanges(); UcitajSkenove(); } } else { frmNoviScanIspitaBrojIndeks frm = new frmNoviScanIspitaBrojIndeks(sken); frm.ShowDialog(); } }