예제 #1
0
 public override bool ContainsAction(UInt32 branchId)        //ActionBranch branch)
 {
     if (base.ContainsAction(branchId))
     {
         return(true);
     }
     if (_list != null)
     {
         return(_list.ContainsAction(branchId));
     }
     return(false);
 }
예제 #2
0
 public override void RemoveOutOfGroupBranches(BranchList branches)
 {
     if (_list != null)
     {
         List <ActionBranch> l = new List <ActionBranch>();
         foreach (ActionBranch ab in _list)
         {
             if (!branches.ContainsAction(ab.BranchId))
             {
                 l.Add(ab);
             }
         }
         foreach (ActionBranch ab in l)
         {
             _list.Remove(ab);
         }
     }
 }