Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TareasWindows1 = ((CUADERNODELPROFESOR.TareasWindow)(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 tareasDGClick(object sender, MouseButtonEventArgs e)
 {
     if (!ventanaAbierta())
     {
         if (dgTareasMainClases.SelectedItem != null)
         {
             int          numAsignaturaSeleccionada = cbAsignaturasClases.SelectedIndex;
             Asignatura   asignaturaSeleccionada    = listaAsignaturas.ElementAt(numAsignaturaSeleccionada);
             Tarea        tarea      = dgTareasMainClases.SelectedItem as Tarea;
             TareasWindow tareaFicha = new TareasWindow(asignaturaSeleccionada, tarea.id);
             tareaFicha.Show();
             tareaFicha.Owner = this;
         }
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TareasWindows1 = ((CUADERNODELPROFESOR.TareasWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

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

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

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

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

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