Esempio n. 1
0
        //FUNCIONES

        private void generaCarga()
        {
            try
            {
                Horario newMDIChild = new Horario(IdAlumnoActual);
                newMDIChild.MdiParent = this.ParentForm;
                newMDIChild.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
            }
        }
Esempio n. 2
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex >= 0)
                {
                    DataGridViewRow row      = this.tabla_alumnos.Rows[e.RowIndex];
                    int             idAlumno = Convert.ToInt32(row.Cells["IdAlumno"].Value.ToString());

                    Horario newMDIChild = new Horario(idAlumno);
                    newMDIChild.MdiParent = this.ParentForm;
                    newMDIChild.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
            }
        }