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();
}