Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 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);
         }
     }
 }
Ejemplo n.º 4
0
 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);
         }
     }
 }