Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TareasAltaWindow1 = ((CUADERNODELPROFESOR.TareasAltaWindow)(target));
                return;

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

            case 3:
                this.txtNombreTarea1 = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            case 5:
                this.txtValoracionTarea = ((System.Windows.Controls.PasswordBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void añadirTareas(object sender, RoutedEventArgs e)
 {
     if (!ventanaAbierta())
     {
         // RECOGEMOS LA ASIGNATURA SELECCIONADA DEL COMBOBOX
         int numAsignaturaSeleccionada = cbAsignaturasClases.SelectedIndex;
         if (numAsignaturaSeleccionada != -1)
         {
             Asignatura       asignaturaSeleccionada = listaAsignaturas.ElementAt(numAsignaturaSeleccionada);
             TareasAltaWindow programarTareas        = new TareasAltaWindow(asignaturaSeleccionada);
             programarTareas.Owner = this;
             programarTareas.Show();
         }
         else
         {
             Utils.msgBox("No ha seleccionado ninguna asignatura, use las listas superiores para ello", "ok", "warning");
         }
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TareasAltaWindow1 = ((CUADERNODELPROFESOR.TareasAltaWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

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

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

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

            case 6:
                this.dateTimePickerFecha = ((System.Windows.Controls.DatePicker)(target));
                return;

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