public override void Save(string[] configNames, IPropertyStorage storage) { if (box.Text != null) { storage.SetProperties(false, configNames, propertyName, box.Text); #if false if (box.Text != defaultValue) { storage.SetProperties(false, configNames, propertyName, box.Text); } else { // don't clutter csproj file foreach (var config in configNames) { storage.RemoveProperty(false, config, propertyName); } } #endif } }
public override void Save(string[] configNames, IPropertyStorage storage) { if (box.CheckState != CheckState.Indeterminate) { storage.SetProperties(false, configNames, propertyName, !box.Checked); #if false if (box.Checked != defaultValue) { storage.SetProperties(false, configNames, propertyName, !box.Checked); } else { // don't clutter csproj file foreach (var config in configNames) { storage.RemoveProperty(false, config, propertyName); } } #endif } }
public override void Save(string[] configNames, IPropertyStorage storage) { if (box.CheckState != CheckState.Indeterminate) { storage.SetProperties(false, configNames, propertyName, box.Checked); // TODO: avoid saving default values, once removing works #if false if (box.Checked != defaultValue) { storage.SetProperties(false, configNames, propertyName, box.Checked); } else { // don't clutter csproj file foreach (var config in configNames) { storage.RemoveProperty(false, config, propertyName); } } #endif } }