public Resultados(int IdPrueba, int IdCandidato, ResultadosPrueba r) { InitializeComponent(); this.IdPrueba = IdPrueba; this.IdCandidato = IdCandidato; this.r = r; }
private void button1_Click(object sender, EventArgs e) { int pos = 0; try { pos = dataGridView1.CurrentCell.RowIndex; int idPrueba = (int)dataGridView1[0, pos].Value; ResultadosPrueba ed = new ResultadosPrueba(idPrueba, this); ed.MdiParent = this.MdiParent; ed.Show(); this.Hide(); } catch { MessageBox.Show("Primero seleccione a una de la tabla"); } }
private void button1_Click(object sender, EventArgs e) { int pos = 0; try { pos = dataGridView1.CurrentCell.RowIndex; int idPrueba = (int)dataGridView1[0, pos].Value; ResultadosPrueba ed = new ResultadosPrueba(idPrueba, this); ed.MdiParent = this.MdiParent; ed.Show(); this.Hide(); } catch { MessageBox.Show("Primero seleccione a una de la tabla"); } }