private void RemoveWrappedItem(IEditableListItem <T> item, EditorUpdateSource source, int index) { m_wrappedItems.Remove(item.Key); if (Removed != null) { Removed(this, new EditableListUpdatedEventArgs <T> { UpdatedItem = item, Index = index, Source = source }); } }
private void RemoveWrappedItem(IEditableListItem <TWrapped> item, EditorUpdateSource source, int index) { m_wrappedItems[item.Key].Value.UnderlyingValueUpdated -= WrappedUnderlyingValueUpdated; m_wrappedItemsLookup.Remove(m_wrappedItems[item.Key].Value); m_wrappedItems.Remove(item.Key); if (Removed != null) { Removed(this, new EditableListUpdatedEventArgs <TWrapped> { UpdatedItem = item, Index = index, Source = source }); } }
private void RemoveWrappedItem(IEditableListItem <T> item, EditorUpdateSource source, int index) { m_wrappedItems.Remove(item.Key); m_wrappedItemsList.Remove(item); m_wrappedItemKeys.Remove(item.Key); if (Removed != null) { Removed(this, new EditableListUpdatedEventArgs <T> { UpdatedItem = item, Index = index, Source = source }); } if (CollectionChanged != null) { CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, index)); } }