private void dgvSpisakNaloga_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string id = dgvSpisakNaloga.CurrentRow.Cells["id"].Value.ToString(); if (cbVrsta.SelectedValue.ToString() == "1") { FormNoviNalog f1 = new FormNoviNalog(id); f1.ShowDialog(); } if (cbVrsta.SelectedValue.ToString() == "2") { FormRNGP f1 = new FormRNGP(id); f1.ShowDialog(); } if (cbVrsta.SelectedValue.ToString() == "3") { FormRNPP f1 = new FormRNPP(id); f1.ShowDialog(); } btnPrikazeNaloge_Click(null, null); }
private void dgvSpisakNaloga_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { FormNoviNalog f1 = new FormNoviNalog(dgvSpisakNaloga.CurrentRow.Cells["id"].Value.ToString()); f1.ShowDialog(); }