예제 #1
0
        private void btnLogOut_Click(object sender, RoutedEventArgs e)
        {
            ACTLogin login = new ACTLogin();

            login.Show();
            this.Close();
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoginScreen = ((MCSales.View.ACTLogin)(target));
                return;

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

            case 3:
                this.txtUser = ((Xceed.Wpf.Toolkit.MaskedTextBox)(target));

            #line 38 "..\..\..\View\ACTLogin.xaml"
                this.txtUser.GotFocus += new System.Windows.RoutedEventHandler(this.txtUser_GotFocus);

            #line default
            #line hidden

            #line 38 "..\..\..\View\ACTLogin.xaml"
                this.txtUser.LostFocus += new System.Windows.RoutedEventHandler(this.txtUser_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\..\View\ACTLogin.xaml"
                this.psbPassword.PasswordChanged += new System.Windows.RoutedEventHandler(this.psbPassword_PasswordChanged);

            #line default
            #line hidden

            #line 39 "..\..\..\View\ACTLogin.xaml"
                this.psbPassword.KeyDown += new System.Windows.Input.KeyEventHandler(this.psbPassword_KeyDown);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\..\View\ACTLogin.xaml"
                this.btnLogin.Click += new System.Windows.RoutedEventHandler(this.btnLogin_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.imgLock = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.imgUser = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\..\View\ACTLogin.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.imgHeader = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }