private void button2_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count != 0) { Fakultet f = (Fakultet)dataGridView1.CurrentRow.DataBoundItem; DodajFakultetForm dnf = new DodajFakultetForm(f); dnf.Show(); } else { MessageBox.Show("Izaberite fakultet za izmenu!"); } }
private void button1_Click(object sender, EventArgs e) { DodajFakultetForm dff = new DodajFakultetForm(); dff.Show(); }