/// <summary> /// 添加上级节点 /// </summary> /// <param name="obj"></param> public void AddParent(wfActivity obj, string StrRule) { actRule rule = new actRule(); rule.Node = obj; rule.Rule = StrRule; Parents.Add(rule); }
/// <summary> /// 添加下层节点 /// </summary> /// <param name="obj"></param> public actRule AddChild(wfActivity obj, string StrRule) { actRule rule = new actRule(); rule.Node = obj; rule.Rule = StrRule; Childs.Add(rule); return(rule); }
public void RemoveChild(wfActivity obj) { for (int i = 0; i < Childs.Count; i++) { actRule rule = (actRule)Childs[i]; if (rule.Node == obj) { rule.Node = null; Childs.RemoveAt(i); } } }
public void RemoveParent(wfActivity obj) { for (int i = 0; i < Parents.Count; i++) { actRule rule = (actRule)Parents[i]; if (rule.Node == obj) { rule.Node = null; Parents.RemoveAt(i); } } }