Exemple #1
0
        private void btnUrediPPartnera_Click(object sender, EventArgs e)
        {
            if (dgvPartneri.SelectedCells.Count > 0)
            {
                string odabir = dgvPartneri.SelectedCells[0].Value.ToString();
                int    id     = Convert.ToInt32(odabir);
                Podatci.ID_partner = id;
            }

            frmUrediPartnera dodaj = new frmUrediPartnera();

            dodaj.MdiParent = this.MdiParent;
            dodaj.Show();
            this.Close();
        }
        private void btnUrediPPartnera_Click(object sender, EventArgs e)
        {


            if (dgvPartneri.SelectedCells.Count > 0)
            {
                string odabir = dgvPartneri.SelectedCells[0].Value.ToString();
                int id = Convert.ToInt32(odabir);
                Podatci.ID_partner = id;
            }

            frmUrediPartnera dodaj = new frmUrediPartnera();
            dodaj.MdiParent = this.MdiParent;
            dodaj.Show();
            this.Close();
        }