private void removeItem(ItemVM item) { item.Changed -= item_Changed; this.Items.Remove(item); NotifyPropertyChanged("FilteredItems"); IsChanged = true; }
private void addItem(ItemVM item) { item.Changed += item_Changed; this.Items.Add(item); NotifyPropertyChanged("FilteredItems"); SelectedItem = item; IsChanged = true; }