private void dodajToolStripMenuItem_Click(object sender, EventArgs e) { DodajLigu dlform = new DodajLigu(); dlform.ShowDialog(); ucitajDGV(); }
private void btnUpdate_Click(object sender, EventArgs e) { if (!Provera.chkIfSelected(dataGridView1)) { return; } Liga l = dataGridView1.CurrentRow.DataBoundItem as Liga; DodajLigu lform = new DodajLigu(); lform.UpdateItem = l; lform.ShowDialog(); ucitajDGV(); }