|
|
|
@ -8,7 +8,10 @@ |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Drawing; |
|
|
|
using System.Drawing; |
|
|
|
|
|
|
|
using System.Windows.Media; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
|
|
|
using ICSharpCode.Core.Presentation; |
|
|
|
using ICSharpCode.TreeView; |
|
|
|
using ICSharpCode.TreeView; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.CodeAnalysis |
|
|
|
namespace ICSharpCode.CodeAnalysis |
|
|
|
@ -53,9 +56,13 @@ namespace ICSharpCode.CodeAnalysis |
|
|
|
public class CategoryTreeNode : BaseTree |
|
|
|
public class CategoryTreeNode : BaseTree |
|
|
|
{ |
|
|
|
{ |
|
|
|
internal FxCopCategory category; |
|
|
|
internal FxCopCategory category; |
|
|
|
|
|
|
|
private string mixedModeText; |
|
|
|
|
|
|
|
private ImageSource mixedModeIcon; |
|
|
|
|
|
|
|
|
|
|
|
public CategoryTreeNode(FxCopCategory category,IEnumerable<Tuple<Icon,string,int>> bla):base(bla) |
|
|
|
public CategoryTreeNode(FxCopCategory category,IEnumerable<Tuple<Icon,string,int>> bla):base(bla) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
mixedModeText = StringParser.Parse("${res:ICSharpCode.CodeAnalysis.ProjectOptions.WarningErrorMixed}"); |
|
|
|
|
|
|
|
mixedModeIcon = PresentationResourceService.GetBitmapSource("Icons.16x16.ClosedFolderBitmap"); |
|
|
|
this.category = category; |
|
|
|
this.category = category; |
|
|
|
foreach (FxCopRule rule in category.Rules) { |
|
|
|
foreach (FxCopRule rule in category.Rules) { |
|
|
|
this.Children.Add(new RuleTreeNode(rule,bla)); |
|
|
|
this.Children.Add(new RuleTreeNode(rule,bla)); |
|
|
|
@ -83,6 +90,14 @@ namespace ICSharpCode.CodeAnalysis |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ImageSource MixedModeIcon { |
|
|
|
|
|
|
|
get { return mixedModeIcon; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string MixedModeText |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
get {return mixedModeText;} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Nullable<bool> NewErrorState { |
|
|
|
public Nullable<bool> NewErrorState { |
|
|
|
|