private void añadirAlumnos(object sender, RoutedEventArgs e)
 {
     if (!ventanaAbierta())
     {
         AlumnosAltaWindow alumnosAlta = new AlumnosAltaWindow();
         // HACEMOS OWNER DE LA NUEVA VENTANA A LA MAIN, PARA PODER RECARGAR LOS ALUMNOS AL AÑADIRLOS
         alumnosAlta.Owner = this;
         alumnosAlta.Show();
     }
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AlumnosAltaWindow1 = ((CUADERNODELPROFESOR.AlumnosAltaWindow)(target));
                return;

            case 2:

            #line 11 "..\..\..\ui\AlumnosAltaWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.altaAlumno);

            #line default
            #line hidden
                return;

            case 3:
                this.txtNombreAltaAlumno = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtApellidosAltaAlumno = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.txtDireccionAltaAlumno = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.txtTelefonoAltaAlumno = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.txtEmailAltaAlumno = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }