Esempio n. 1
0
        protected virtual void OnReload()
        {
            _codeReferences             = null;
            _sourceFileExclusionFilters = null;

            // ReSharper disable once PossibleNullReferenceException
            GetType().GetProperties().ForEach(p => OnPropertyChanged(p.Name));
        }
Esempio n. 2
0
        private SourceFileExclusionFilterConfiguration LoadSourceFileExclusionFilterConfiguration()
        {
            Contract.Ensures(Contract.Result <SourceFileExclusionFilterConfiguration>() != null);

            // ReSharper disable once ExplicitCallerInfoArgument
            _sourceFileExclusionFilters = GetValue(default(SourceFileExclusionFilterConfiguration), nameof(SourceFileExclusionFilters)) ?? SourceFileExclusionFilterConfiguration.Default;
            _sourceFileExclusionFilters.ItemPropertyChanged += (_, __) => _sourceFileExclusionFiltersChangeThrottle.Tick();

            return(_sourceFileExclusionFilters);
        }