コード例 #1
0
 private void OnUserValidated(object src, UserValidatedEventArgs e)
 {
     _NeedToDoReset = GetNeedToReset();
     if (_Properties != null && _Properties.Count > 0 && string.Compare(e.UserName, _UserName, StringComparison.OrdinalIgnoreCase) != 0)
     {
         try {
             if (_SettingsBaseClass != null)
             {
                 _SettingsBaseClass.Reload();
             }
             // _PropertyValues = new SettingsPropertyValueCollection();
             // GetPropertyValuesCore(); // refresh the collection
         } catch {
             // it's possible that the (new) user doesn't have the same props
             // if (_PropertyValues.Count < _Properties.Count)
             //    SetRemainingValuesToDefault();
         }
     }
 }
コード例 #2
0
 private void OnUserValidated(object src, UserValidatedEventArgs e)
 {
     _NeedToDoReset = GetNeedToReset();
     if (_Properties != null && _Properties.Count > 0 && string.Compare(e.UserName, _UserName, StringComparison.OrdinalIgnoreCase) != 0) {
         try {
             if (_SettingsBaseClass != null)
                 _SettingsBaseClass.Reload();
             // _PropertyValues = new SettingsPropertyValueCollection();
             // GetPropertyValuesCore(); // refresh the collection
         } catch {
             // it's possible that the (new) user doesn't have the same props
             // if (_PropertyValues.Count < _Properties.Count)
             //    SetRemainingValuesToDefault();
         }
     }
 }