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

            frm.Show();
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            var id = dgvUred.SelectedRows[0].Cells[0].Value;

            frmUredDetalji frm = new frmUredDetalji(int.Parse(id.ToString()), this);

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