|
|
|
|
@ -127,7 +127,7 @@ namespace CSharpBinding.FormattingStrategy
@@ -127,7 +127,7 @@ namespace CSharpBinding.FormattingStrategy
|
|
|
|
|
if ((e.PropertyName == "Parent") || (e.PropertyName == null)) { |
|
|
|
|
// All properties might have changed -> update everything
|
|
|
|
|
cachedOptions = CreateCachedOptions(); |
|
|
|
|
OnPropertyChanged(e.PropertyName); |
|
|
|
|
// OnPropertyChanged(e.PropertyName);
|
|
|
|
|
} else { |
|
|
|
|
// Some other property has changed, check if we have our own value for it
|
|
|
|
|
if (!activeOptions.Contains(e.PropertyName)) { |
|
|
|
|
@ -136,7 +136,7 @@ namespace CSharpBinding.FormattingStrategy
@@ -136,7 +136,7 @@ namespace CSharpBinding.FormattingStrategy
|
|
|
|
|
if (propertyInfo != null) { |
|
|
|
|
var val = GetEffectiveOption(e.PropertyName); |
|
|
|
|
propertyInfo.SetValue(cachedOptions, val); |
|
|
|
|
OnPropertyChanged(e.PropertyName); |
|
|
|
|
// OnPropertyChanged(e.PropertyName);
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -265,6 +265,7 @@ namespace CSharpBinding.FormattingStrategy
@@ -265,6 +265,7 @@ namespace CSharpBinding.FormattingStrategy
|
|
|
|
|
if (parentProperties == null) |
|
|
|
|
throw new ArgumentNullException("parentProperties"); |
|
|
|
|
|
|
|
|
|
if (parentProperties.Contains("CSharpFormatting")) { |
|
|
|
|
Properties formatProperties = parentProperties.NestedProperties("CSharpFormatting"); |
|
|
|
|
if (formatProperties != null) { |
|
|
|
|
foreach (var key in formatProperties.Keys) { |
|
|
|
|
@ -277,6 +278,7 @@ namespace CSharpBinding.FormattingStrategy
@@ -277,6 +278,7 @@ namespace CSharpBinding.FormattingStrategy
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Save(Properties parentProperties) |
|
|
|
|
{ |
|
|
|
|
|