예제 #1
0
        /// <summary>
        /// Event handler for chaging the password
        /// </summary>
        private void menuItemChangePassword_Click(object sender, RoutedEventArgs e)
        {
            ChangePwd FormChangePwd = new ChangePwd();

            FormChangePwd.Owner = this;
            FormChangePwd.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            FormChangePwd.ShowDialog();
            FormChangePwd.Focus();
            FormChangePwd.Topmost = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FormChangePassword = ((PwdStorage.ChangePwd)(target));
                return;

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

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

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

            case 5:
                this.lblOldPassword = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 8:
                this.btnChangePassword = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\ChangePwd.xaml"
                this.btnChangePassword.Click += new System.Windows.RoutedEventHandler(this.btnChangePassword_Click);

            #line default
            #line hidden
                return;

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