Ejemplo n.º 1
0
        private void mantenimientoButton_Click(object sender, RoutedEventArgs e)
        {
            MantenimientoWindow mantenimientoWindow = new MantenimientoWindow();

            mantenimientoWindow.Show();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Mantenimiento = ((Ejercicio1.MantenimientoWindow)(target));
                return;

            case 2:
                this.dniLabel = ((System.Windows.Controls.Label)(target));
                return;

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

            case 4:
                this.nombreLabel = ((System.Windows.Controls.Label)(target));
                return;

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

            case 6:
                this.apellidosLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.apellidosTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.emailLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.emailTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.contrasenaLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.contrasenaTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.fechaNacimientoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.fechaNacimientoDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 14:
                this.fechaRegistroLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.fechaRegistroDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 16:
                this.estadoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.estadoComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.telefonoLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.telefonoTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.anadirButton = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\MantenimientoWindow.xaml"
                this.anadirButton.Click += new System.Windows.RoutedEventHandler(this.anadirButton_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.modificarButton = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\MantenimientoWindow.xaml"
                this.modificarButton.Click += new System.Windows.RoutedEventHandler(this.modificarButton_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.eliminarButton = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\MantenimientoWindow.xaml"
                this.eliminarButton.Click += new System.Windows.RoutedEventHandler(this.eliminarButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }