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;
 }
示例#2
0
 public override void LoadOptions()
 {
     base.LoadOptions();
     persistenceHelper.Load();
     formattingEditor.OptionsContainer = persistenceHelper.StartEditing();
 }