protected override void Load(ICSharpCode.SharpDevelop.Project.MSBuildBasedProject project, string configuration, string platform)
 {
     base.Load(project, configuration, platform);
     if (formattingPolicy != null)
     {
         formattingPolicy.OptionsContainer.PropertyChanged -= ContainerPropertyChanged;
     }
     formattingPolicy = AlFormattingPolicies.Instance.GetProjectOptions(project);
     formattingEditor.OptionsContainer                  = formattingPolicy.OptionsContainer;
     formattingEditor.AllowPresets                      = true;
     formattingEditor.OverrideGlobalIndentation         = true;
     formattingPolicy.OptionsContainer.PropertyChanged += ContainerPropertyChanged;
 }
 protected override void Load(ICSharpCode.SharpDevelop.Project.MSBuildBasedProject project, string configuration, string platform)
 {
     base.Load(project, configuration, platform);
     if (persistenceHelper != null)
     {
         persistenceHelper.OptionsContainer.PropertyChanged -= ContainerPropertyChanged;
     }
     persistenceHelper = CSharpFormattingOptionsPersistence.GetProjectOptions(project);
     formattingEditor.OptionsContainer = persistenceHelper.OptionsContainer;
     formattingEditor.AllowPresets     = true;
     persistenceHelper.Load();
     persistenceHelper.OptionsContainer.PropertyChanged += ContainerPropertyChanged;
 }
        protected override bool Save(ICSharpCode.SharpDevelop.Project.MSBuildBasedProject project, string configuration, string platform)
        {
            bool success = (formattingPolicy != null) && formattingPolicy.Save();

            return(base.Save(project, configuration, platform) && success);
        }
        protected override bool Save(ICSharpCode.SharpDevelop.Project.MSBuildBasedProject project, string configuration, string platform)
        {
            bool success = (persistenceHelper != null) && persistenceHelper.Save();

            return(base.Save(project, configuration, platform) && success);
        }