コード例 #1
0
        // Click sobre el botón de registro
        private void BtnRegistro_Click(object sender, RoutedEventArgs e)
        {
            // Creamos un objeto del formulario hijo encargado del registro
            ventanaRegistro objRegistro = new ventanaRegistro();

            // Usamos el objeto para lanzar el formulario hijo
            objRegistro.Show();
            //this.Close();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ventanaRegistro1 = ((Proyecto_ArmandoSarrionGonzalez.ventanaRegistro)(target));
                return;

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

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

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

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

            case 6:
                this.btnAceptarRegistro = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.btnCancelarRegistro = ((System.Windows.Controls.Button)(target));
                return;

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

            case 9:
                this.labErrorContraseniaRegistro = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 12:
                this.labErrorContraseniaRegistro_Copy = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ventanaRegistro1 = ((Proyecto_ArmandoSarrionGonzalez.ventanaRegistro)(target));
                return;

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

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

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

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

            case 6:
                this.btnAceptarRegistro = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\Vistas-Controladores\ventanaRegistro.xaml"
                this.btnAceptarRegistro.Click += new System.Windows.RoutedEventHandler(this.BtnAceptarRegistro_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnCancelarRegistro = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\..\Vistas-Controladores\ventanaRegistro.xaml"
                this.btnCancelarRegistro.Click += new System.Windows.RoutedEventHandler(this.BtnCancelarRegistro_Click);

            #line default
            #line hidden
                return;

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

            case 9:
                this.labErrorContraseniaRegistro = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 12:
                this.labErrorRepContraseniaRegistro = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }