Example #1
0
 private void txtPassword_LostFocus(object sender, RoutedEventArgs e)
 {
     Profile profile = cmbProfiles.SelectedItem as Profile;
     if (profile != null)
     {
         SimpleAES aes = new SimpleAES();
         profile.Password = aes.Encrypt(txtPassword.Password);
         TextBox_LostFocus(sender, e);
     }
 }