private bool containsChosenTags(KLPlace place) { bool rezult = true; foreach(KLTag tag in chosenTags) { if (!place.getTags().Contains(tag)) { rezult = false; break; } } return rezult; }
private void loadPlace(KLPlace place, int i) { List<TagModel> tagsModel = new List<TagModel>(); foreach (KLTag tag in place.getTags()) { tagsModel.Add(new TagModel() { TagName = tag.getNameUA(), Colour = new SolidColorBrush(tag.getColor()) }); } this.Items.Add(new ItemViewModel() { LineOne = place.getName(), Tag = tagsModel, SubwayColor = new SolidColorBrush(place.getSubway().getColor()), // SubwayColor = new SolidColorBrush(Colors.Blue), ID = i }); }