Ejemplo n.º 1
0
        private void DataGrid_Show_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try {
                DataGridViewRow row = DataGrid_Show.Rows[e.RowIndex];


                if (Accion == "Gastos")
                {
                    FormIngresoGastos Form_Ingr = Owner as FormIngresoGastos;
                    Form_Ingr.Fun_CargarDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()),
                                              row.Cells["Nombre del Alumno"].Value.ToString());
                }
                else if (Accion == "Vista_Entrevista")
                {
                    VistaEntrevistaPadres Form_Ent = Owner as VistaEntrevistaPadres;
                    Form_Ent.Fun_ExtraerDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()),
                                              row.Cells["Nombre del Alumno"].Value.ToString());
                }
                else if (Accion == "PP")
                {
                    Prueba Form_Ent = new Prueba();
                    Form_Ent.Fun_ExtraerDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()),
                                              row.Cells["Nombre del Alumno"].Value.ToString());
                }


                this.Close();
            }
            catch (Exception) { }
        }
Ejemplo n.º 2
0
        private void vistaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            VistaEntrevistaPadres vistaEntPadres = new VistaEntrevistaPadres();

            vistaEntPadres.ShowDialog();
        }