Exemplo n.º 1
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);
         }
     }
 }