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); }
public static void AddProfile (CSharpFormattingPolicy profile) { profiles.Add (profile); if (!Directory.Exists (ProfilePath)) Directory.CreateDirectory (ProfilePath); string fileName = Path.Combine (ProfilePath, profile.Name + ".xml"); profile.Save (fileName); }
public override bool SaveOptions() { // Only save container, if some option really has changed formattingEditor.OptionsContainer.PropertyChanged -= ContainerPropertyChanged; return((!isDirty || formattingPolicy.Save()) && base.SaveOptions()); }