private void DgvPredmeti_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var id = dgvPredmeti.SelectedRows[0].Cells[0].Value;
            frmPredmetiDetalji frm = new frmPredmetiDetalji(int.Parse(id.ToString()), this);

            frm.Show();
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            var id = dgvPredmeti.SelectedRows[0].Cells[0].Value;
            frmPredmetiDetalji frm = new frmPredmetiDetalji(int.Parse(id.ToString()), this);

            if ((int.Parse(id.ToString())) != 0)
            {
                frm.Show();
            }
        }