|
|
|
@ -34,16 +34,26 @@ namespace ICSharpCode.CodeQuality.Gui |
|
|
|
public DependencyMatrixView() |
|
|
|
public DependencyMatrixView() |
|
|
|
{ |
|
|
|
{ |
|
|
|
InitializeComponent(); |
|
|
|
InitializeComponent(); |
|
|
|
|
|
|
|
Visibility = Visibility.Hidden; |
|
|
|
|
|
|
|
popUp.IsOpen = true; |
|
|
|
|
|
|
|
|
|
|
|
nodeDescriptionViewModel = new NodeDescriptionViewModel(); |
|
|
|
nodeDescriptionViewModel = new NodeDescriptionViewModel(); |
|
|
|
this.inform.DataContext = nodeDescriptionViewModel; |
|
|
|
this.inform.DataContext = nodeDescriptionViewModel; |
|
|
|
topTree.Root = new ICSharpCode.TreeView.SharpTreeNode(); |
|
|
|
topTree.Root = new ICSharpCode.TreeView.SharpTreeNode(); |
|
|
|
leftTree.Root = new ICSharpCode.TreeView.SharpTreeNode(); |
|
|
|
leftTree.Root = new ICSharpCode.TreeView.SharpTreeNode(); |
|
|
|
matrix.Colorizer = new DependencyColorizer(); |
|
|
|
matrix.Colorizer = new DependencyColorizer(); |
|
|
|
matrix.ScrollOwner = scrollViewer; |
|
|
|
matrix.ScrollOwner = scrollViewer; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Update(IEnumerable<INode> nodes) |
|
|
|
public void Update(IEnumerable<INode> nodes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
this.Visibility = Visibility.Visible; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popUp.IsOpen = false; |
|
|
|
|
|
|
|
popUp.StaysOpen = true; |
|
|
|
|
|
|
|
|
|
|
|
Extensions.FillTree(topTree, nodes); |
|
|
|
Extensions.FillTree(topTree, nodes); |
|
|
|
Extensions.FillTree(leftTree, nodes); |
|
|
|
Extensions.FillTree(leftTree, nodes); |
|
|
|
|
|
|
|
|
|
|
|
@ -58,6 +68,7 @@ namespace ICSharpCode.CodeQuality.Gui |
|
|
|
this.matrix.Matrix = matrix; |
|
|
|
this.matrix.Matrix = matrix; |
|
|
|
BuildLeftINodeList(null, null); |
|
|
|
BuildLeftINodeList(null, null); |
|
|
|
BuildTopINodeList(null, null); |
|
|
|
BuildTopINodeList(null, null); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void AddChildrenToMatrix(DependencyMatrix matrix, IEnumerable<INode> nodes) |
|
|
|
void AddChildrenToMatrix(DependencyMatrix matrix, IEnumerable<INode> nodes) |
|
|
|
|