Esempio n. 1
0
        private void btnUrediOpremu_Click(object sender, EventArgs e)
        {
            if (dgvOprema.SelectedCells.Count > 0)
            {
                string odabir = dgvOprema.SelectedCells[0].Value.ToString();
                int id = Convert.ToInt32(odabir);
                Podatci.ID_oprema = id;
            }

            frmUrediOpremu uredi = new frmUrediOpremu();
            uredi.MdiParent = this.MdiParent;
            uredi.Show();
            this.Close();
        }
Esempio n. 2
0
        private void btnUrediOpremu_Click(object sender, EventArgs e)
        {
            if (dgvOprema.SelectedCells.Count > 0)
            {
                string odabir = dgvOprema.SelectedCells[0].Value.ToString();
                int    id     = Convert.ToInt32(odabir);
                Podatci.ID_oprema = id;
            }

            frmUrediOpremu uredi = new frmUrediOpremu();

            uredi.MdiParent = this.MdiParent;
            uredi.Show();
            this.Close();
        }