private void novaRobaButton_Click(object sender, EventArgs e) { RobaUnos forma = new RobaUnos(); forma.ShowDialog(); GetRoba(); }
private void izmjeniRobuButton_Click(object sender, EventArgs e) { if (robaDGV.SelectedRows.Count > 0) { RobaUnos forma = new RobaUnos(int.Parse(robaDGV.CurrentRow.Cells[0].Value.ToString())); forma.ShowDialog(); GetRoba(); } else { MessageBox.Show("Nije odabrana roba"); } }