private void dgvKnjige_CellContentClick(object sender, DataGridViewCellEventArgs e) { var id = dgvKnjige.SelectedRows[0].Cells[0].Value; FormEknjigeDodaj form = new FormEknjigeDodaj(int.Parse(id.ToString())); form.Show(); }
private void btnDodaj_Click(object sender, EventArgs e) { FormEknjigeDodaj form = new FormEknjigeDodaj(); form.Show(); }