Exemple #1
0
 private static void TakePasswordOver(EnhancedPasswordBox control, object password)
 {
     if (!control._selfChange &&
         password != null &&
         control._innerPasswordBox != null)
     {
         control._innerPasswordBox.PasswordChanged -= control.PasswordBox_PasswordChanged;
         control._innerPasswordBox.Password         = password.ToString();
         control._innerPasswordBox.PasswordChanged += control.PasswordBox_PasswordChanged;
     }
 }
 private static void TakePasswordOver(EnhancedPasswordBox control, object password)
 {
     if (!control._selfChange &&
         password != null &&
         control._innerPasswordBox != null)
     {
         control._innerPasswordBox.PasswordChanged -= control.PasswordBox_PasswordChanged;
         control._innerPasswordBox.Password = password.ToString();
         control._innerPasswordBox.PasswordChanged += control.PasswordBox_PasswordChanged;
     }
 }