Beispiel #1
0
        private void DgvRadniSati_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var id = dgvRadniSati.SelectedRows[0].Cells[0].Value;
            frmRadniSatiDetalji frm = new frmRadniSatiDetalji(int.Parse(id.ToString()), this);

            frm.Show();
        }
Beispiel #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            var id = dgvRadniSati.SelectedRows[0].Cells[0].Value;
            frmRadniSatiDetalji frm = new frmRadniSatiDetalji(int.Parse(id.ToString()), this);

            if ((int.Parse(id.ToString())) != 0)
            {
                frm.Show();
            }
        }