|
|
|
@ -58,8 +58,6 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
this.TabMetrics = "Metrics"; |
|
|
|
this.TabMetrics = "Metrics"; |
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
// MetrixTabEnable = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ActivateMetrics = new RelayCommand(ActivateMetricsExecute); |
|
|
|
ActivateMetrics = new RelayCommand(ActivateMetricsExecute); |
|
|
|
ShowTreeMap = new RelayCommand(ShowTreemapExecute,CanActivateTreemap); |
|
|
|
ShowTreeMap = new RelayCommand(ShowTreemapExecute,CanActivateTreemap); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -77,7 +75,6 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string fileName; |
|
|
|
private string fileName; |
|
|
|
|
|
|
|
|
|
|
|
public string FileName { |
|
|
|
public string FileName { |
|
|
|
@ -135,6 +132,12 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
get { return mainModule; } |
|
|
|
get { return mainModule; } |
|
|
|
set { mainModule = value; |
|
|
|
set { mainModule = value; |
|
|
|
base.RaisePropertyChanged(() =>this.MainModule); |
|
|
|
base.RaisePropertyChanged(() =>this.MainModule); |
|
|
|
|
|
|
|
Summary = String.Format("Module Name: {0} Namespaces: {1} Types {2} Methods: {3} Fields: {4}", |
|
|
|
|
|
|
|
mainModule.Name, |
|
|
|
|
|
|
|
mainModule.Namespaces.Count, |
|
|
|
|
|
|
|
mainModule.TypesCount, |
|
|
|
|
|
|
|
mainModule.MethodsCount, |
|
|
|
|
|
|
|
mainModule.FieldsCount); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -145,9 +148,34 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
get { return selectedNode; } |
|
|
|
get { return selectedNode; } |
|
|
|
set { selectedNode = value; |
|
|
|
set { selectedNode = value; |
|
|
|
base.RaisePropertyChanged(() =>this.SelectedNode); |
|
|
|
base.RaisePropertyChanged(() =>this.SelectedNode); |
|
|
|
base.RaisePropertyChanged(() =>this.MetrixTabEnable);} |
|
|
|
base.RaisePropertyChanged(() =>this.MetrixTabEnable); |
|
|
|
|
|
|
|
Summary = UpdateToolStrip(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string UpdateToolStrip() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
var t = SelectedNode as Type; |
|
|
|
|
|
|
|
if (t != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return string.Format("Type Namer {0} Methods {1} Fields {2}", |
|
|
|
|
|
|
|
t.Name, |
|
|
|
|
|
|
|
t.GetAllMethods().Count(), |
|
|
|
|
|
|
|
t.GetAllFields().Count()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var ns = SelectedNode as Namespace; |
|
|
|
|
|
|
|
if ( ns != null) { |
|
|
|
|
|
|
|
return string.Format("Namespace Name {0} Types : {1} Methods: {2} Fields : {3}", |
|
|
|
|
|
|
|
ns.Name, |
|
|
|
|
|
|
|
ns.Types.Count, |
|
|
|
|
|
|
|
ns.GetAllMethods().Count(), |
|
|
|
|
|
|
|
ns.GetAllFields().Count()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return String.Empty; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<INode> nodes; |
|
|
|
private ObservableCollection<INode> nodes; |
|
|
|
|
|
|
|
|
|
|
|
public ObservableCollection<INode> Nodes { |
|
|
|
public ObservableCollection<INode> Nodes { |
|
|
|
@ -231,7 +259,6 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region ShowTreeMap Treemap
|
|
|
|
#region ShowTreeMap Treemap
|
|
|
|
@ -306,5 +333,18 @@ namespace ICSharpCode.CodeQualityAnalysis |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region ToolStrip and ToolTip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string summary; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string Summary { |
|
|
|
|
|
|
|
get { return summary; } |
|
|
|
|
|
|
|
set { summary = value; |
|
|
|
|
|
|
|
base.RaisePropertyChanged(() => Summary); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|