public AnalyzeIssueNode AddChild(string name, object tag) { AnalyzeIssueNode node = new AnalyzeIssueNode(Application, IssueObjectType, IssueObjectId); node.Name = name; node.Tag = tag; node.Parent = this; Children.Add(node); return(node); }
private string GetTitle() { AnalyzeIssueNode current = ParentNode; string title = string.Empty; while (current != null && current.Application != null) { if (!string.IsNullOrEmpty(current.Name)) { if (string.IsNullOrEmpty(title)) { title = current.Name; } else { title = string.Format("{0} / {1}", current.Name, title); } } current = current.Parent; } return(title); }
public AnalyzeIssueList(AnalyzeIssueNode parentNode) { ParentNode = parentNode; analyzeService = MetaManagerServices.GetAnalyzeService(); }