예제 #1
0
        private void dataGridViewZavrsene_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var nezavrseneDoubleClick = dataGridViewZavrsene.Rows[e.RowIndex].Cells[0].Value;

            frmNarudzbeDetalji frm = new frmNarudzbeDetalji(int.Parse(nezavrseneDoubleClick.ToString()));

            frm.Show();
        }
예제 #2
0
 private void DetaljiToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Id != 0)
     {
         frmNarudzbeDetalji frm = new frmNarudzbeDetalji(Id);
         frm.Show();
     }
 }
예제 #3
0
        private void DataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var objId = dataGridView2.Rows[e.RowIndex].Cells[0].Value;

            if (dataGridView2.Columns[e.ColumnIndex].Name == "Detalji")
            {
                frmNarudzbeDetalji form = new frmNarudzbeDetalji(int.Parse(objId.ToString()));
                form.Show();
            }
        }
예제 #4
0
        private void DgvNarudzbe_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var objId = dgvNarudzbe.Rows[e.RowIndex].Cells[0].Value;

            if (dgvNarudzbe.Columns[e.ColumnIndex].Name == "Detalji")
            {
                if (int.TryParse(objId.ToString(), out int id))
                {
                    frmNarudzbeDetalji form = new frmNarudzbeDetalji(id, this);
                    form.Show();
                }
            }
        }