CmisSync.Edit.CheckPassword C# (CSharp) Method

CheckPassword() private method

private CheckPassword ( object sender, DoWorkEventArgs args ) : void
sender object
args System.ComponentModel.DoWorkEventArgs
return void
        private void CheckPassword(object sender, DoWorkEventArgs args)
        {
            if (!passwordChanged) {
                return;
            }

            Dispatcher.BeginInvoke((Action)delegate
            {
                passwordHelp.Text = Properties_Resources.LoginCheck;
                passwordBox.IsEnabled = false;
                passwordProgress.Visibility = Visibility.Visible;
            });

            ServerCredentials cred = new ServerCredentials()
            {
                Address = Credentials.Address,
                Binding = Credentials.Binding,
                UserName = Credentials.UserName,
                Password = passwordBox.Password
            };

            cred.GetRepositories();
        }