예제 #1
0
        private void btnUrediArtikl_Click(object sender, EventArgs e)
        {
            if (dgvTest.SelectedCells.Count > 0 &&  dgvTest.SelectedCells[0].Value != null)
            {
                string odabir = dgvTest.SelectedCells[0].Value.ToString();
                int id = Convert.ToInt32(odabir);
                Podatci.ID_promjena_artikla = id;
            }

            frmUrediArtikl dodaj = new frmUrediArtikl();
            dodaj.MdiParent = this.MdiParent;
            dodaj.Show();
            this.Close();
        }
예제 #2
0
        private void btnUrediArtikl_Click(object sender, EventArgs e)
        {
            if (dgvTest.SelectedCells.Count > 0 && dgvTest.SelectedCells[0].Value != null)
            {
                string odabir = dgvTest.SelectedCells[0].Value.ToString();
                int    id     = Convert.ToInt32(odabir);
                Podatci.ID_promjena_artikla = id;
            }

            frmUrediArtikl dodaj = new frmUrediArtikl();

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