private void Button_Click(object sender, RoutedEventArgs e) { frmAlumnos f = new frmAlumnos(); ContraladorB contraldorb = new ContraladorB(f); bool? bolok = contraldorb.ShowDialog(); if (bolok != null && bolok.Value) { Alumnos alumno = (Alumnos)contraldorb.objeto; MessageBox.Show("Guardado correctamente Alumno : " + alumno.Nombre); } }
private void btnAlumnos_Click(object sender, RoutedEventArgs e) { frmAlumnos f = new frmAlumnos(); MostrarContenedores(f, contenedor); }