Beispiel #1
0
        void OnUserPropertiesChanged(object sender, Core.PropertyBagChangedEventArgs e)
        {
            bool newValue = FileNestingService.IsEnabledForProject(Project);

            if (fileNestingEnabled != newValue)
            {
                fileNestingEnabled = newValue;
                FileNestingService.NotifyNestingRulesChanged(Project);
            }
        }
Beispiel #2
0
        void OnUserPropertiesChanged(object sender, Core.PropertyBagChangedEventArgs e)
        {
            bool newValue = FileNestingService.IsEnabledForProject(Project);

            if (fileNestingEnabled != newValue)
            {
                fileNestingEnabled = newValue;
                foreach (var kvp in projectFiles)
                {
                    var nestingInfo = kvp.Value;
                    if (nestingInfo.Children != null)
                    {
                        FileNestingService.NotifyNestingRulesChanged(nestingInfo.File, null);
                    }
                }
            }
        }