private void añadirAsignatura(object sender, RoutedEventArgs e)
 {
     if (!ventanaAbierta())
     {
         AsignaturasAltaWindow asignaturasAlta = new AsignaturasAltaWindow();
         asignaturasAlta.Owner = this;
         asignaturasAlta.Show();
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AsignaturasAltaWindow1 = ((CUADERNODELPROFESOR.AsignaturasAltaWindow)(target));
                return;

            case 2:

            #line 12 "..\..\..\ui\AsignaturasAltaWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.altaAsignatura);

            #line default
            #line hidden
                return;

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

            case 4:
                this.cbCursoAltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.txtHora1AltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.txtHora2AltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.txtHora3AltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.txtHora4AltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.txtHora5AltaAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AsignaturasAltaWindow1 = ((CUADERNODELPROFESOR.AsignaturasAltaWindow)(target));
                return;

            case 2:
                this.txtNombreAsignaturaTarea = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.cbCursoAsignatura = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }