private void encomendasFritasDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { var encomenda = int.Parse(encomendasFritasDataGridView[0, e.RowIndex].Value.ToString()); VerEncomenda Check = new VerEncomenda(encomenda); Check.Show(); }
private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var PlanoFrito = (PlanoFrito)dataGridView2.Rows[e.RowIndex].DataBoundItem; VerEncomenda Check = new VerEncomenda(PlanoFrito.PlanoSemanal.NumeroCarga); Check.Show(); }