private void SetChosenSubscribers(int subscriberId, bool chosen)
 {
     if (subscriberId != 0)
     {
         if ((chosen) && !ChosenProducts.Contains(subscriberId))
         {
             ChosenProducts.Add(subscriberId);
             NotChosenProducts.Remove(subscriberId);
         }
         else if ((!chosen) && (ChosenProducts.Contains(subscriberId)))
         {
             ChosenProducts.Remove(subscriberId);
             NotChosenProducts.Add(subscriberId);
         }
     }
 }
Exemplo n.º 2
0
 private void SetChosenProducts(int productId, bool chosen)
 {
     if (productId != 0)
     {
         if ((chosen) && !ChosenProducts.Contains(productId))
         {
             ChosenProducts.Add(productId);
             NotChosenProducts.Remove(productId);
         }
         else if ((!chosen) && (ChosenProducts.Contains(productId)))
         {
             ChosenProducts.Remove(productId);
             NotChosenProducts.Add(productId);
         }
     }
 }