public void InitSelectingTag() { var tagIdList = new List <int>(); foreach (var selectedTag in _selectingTags) { tagIdList.Add(selectedTag.Id); } _selectingTags.Clear(); foreach (var selectId in tagIdList) { SelectingTags.Add(_treeViewModel.Manager.TagDictionary[selectId]); } }
public void AddSelection() { var selectedTag = _treeViewModel.GetSelectingTag(); if (selectedTag == null) { return; } if (selectedTag.IsBase()) { return; } if (_selectingTags.Contains(selectedTag)) { return; } SelectingTags.Add(selectedTag); OnSelectingButtonChanged(); }