private void btnUrediZaposlenika_Click(object sender, EventArgs e) { if (dgvZaposleniciPopis.SelectedCells.Count > 0 && dgvZaposleniciPopis.SelectedCells[0].Value != null) { string odabir = dgvZaposleniciPopis.SelectedCells[0].Value.ToString(); int id = Convert.ToInt32(odabir); Podatci.ID_zaposlenika = id; } frmUrediZaposlenika uredi = new frmUrediZaposlenika(); uredi.MdiParent = this.MdiParent; uredi.Show(); this.Close(); }
private void btnUrediZaposlenika_Click(object sender, EventArgs e) { if (dgvZaposleniciPopis.SelectedCells.Count > 0 && dgvZaposleniciPopis.SelectedCells[0].Value != null) { string odabir = dgvZaposleniciPopis.SelectedCells[0].Value.ToString(); int id = Convert.ToInt32(odabir); Podatci.ID_zaposlenika = id; } frmUrediZaposlenika uredi = new frmUrediZaposlenika(); uredi.MdiParent = this.MdiParent; uredi.Show(); this.Close(); }