Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int pos = 0;

            try {
                pos = dataGridView1.CurrentCell.RowIndex;
                int d = (int)dataGridView1[2, pos].Value;

                AgregarPruebas a = new AgregarPruebas(d, this);
                a.MdiParent = this.MdiParent;
                a.Show();
            }
            catch { MessageBox.Show("Primero seleccione a alguien de la tabla"); }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int pos = 0;

            try {

                pos = dataGridView1.CurrentCell.RowIndex;
                int d = (int)dataGridView1[2, pos].Value;

                AgregarPruebas a = new AgregarPruebas(d, this);
                a.MdiParent = this.MdiParent;
                a.Show();
            }
            catch { MessageBox.Show("Primero seleccione a alguien de la tabla"); }
        }