public WorkGroupTreeNode(IWorkGroupStructureNode node, WorkGroup _parent) : base(node.Name) { this.Title = node.Name; this.items = new List <ClientProcessItem>(); this.parent = _parent; this.priority = this.parent.GetNextPriority(); this.naConditions = new HashSet <string>(); if (node.IsLeafNode) { if (node.Childs != null) { IWorkGroupCondition[] childs = node.Childs; for (int i = 0; i < childs.Length; i++) { IWorkGroupCondition condition = childs[i]; string key = condition.ToString(); this.parent[key] = this; this.naConditions.Add(key); } return; } } else { IWorkGroupStructureNode[] childNodes = node.ChildNodes; for (int j = 0; j < childNodes.Length; j++) { IWorkGroupStructureNode childNode = childNodes[j]; base.Nodes.Add(new WorkGroupTreeNode(childNode, this.parent)); } } }
public PriorityComparer(WorkGroup _workGroup) { this.workGroup = _workGroup; }