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); } } }
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); } } }