コード例 #1
0
        private void Button_Login2(object sender, RoutedEventArgs e)
        {
            WindowLogin Pantalla2_2 = new WindowLogin();

            this.Hide();
            Pantalla2_2.ShowDialog();
            this.Show();
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.formLogin = ((Entorno_visual.WindowLogin)(target));
                return;

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

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

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

            case 5:
                this.Button_Login_validation = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\WindowLogin.xaml"
                this.Button_Login_validation.Click += new System.Windows.RoutedEventHandler(this.Button_Login_validation_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.Label_if_incorrecto = ((System.Windows.Controls.Label)(target));
                return;

            case 8:

            #line 18 "..\..\WindowLogin.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 9:

            #line 19 "..\..\WindowLogin.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        private void Button_SignOut_Click(object sender, RoutedEventArgs e)
        {
            WindowLogin login = new WindowLogin();

            this.Close();
            login.ShowDialog();
            this.Show();
            formAdmin.Close();
        }