Ejemplo n.º 1
0
 private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         String            rfc = dataGridViewAlumnos.CurrentRow.Cells[0].Value.ToString();
         FormDetalleAlumno fa  = new FormDetalleAlumno(control.consultarAlumno(rfc));
         fa.MdiParent = this.ParentForm;
         fa.Size      = new Size(this.ParentForm.Size.Width - 20, this.ParentForm.Size.Height - 45);
         fa.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         String id  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         Alumno alu = control.consultarAlumno(id);
         //MessageBox.Show("Reporte referente al grupo "+ grupo.codigo);
         FormDetalleAlumno fa = new FormDetalleAlumno(alu);
         fa.FormBorderStyle = FormBorderStyle.FixedToolWindow;
         fa.SizeChanged    -= new System.EventHandler(fa.Main_SizeChanged);
         fa.moverForms(170);
         fa.Width       = fa.Width - 150;
         fa.FormClosed += new FormClosedEventHandler(form_Closed);
         fa.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }