public void Remove(T item) { if (item != null && _list.Contains(item)) { _list.Remove(item); if (OnListOperation != null) { OnListOperation.Invoke(this, new EventArgsOperationAndArg("Remove", item.ToString())); } } }
public void Add(T item) { if (item != null) { _list.Add(item); if (OnListOperation != null) { OnListOperation.Invoke(this, new EventArgsOperationAndArg("Add", item.ToString())); } } }