示例#1
0
        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()));
                }
            }
        }
示例#2
0
        public void Add(T item)
        {
            if (item != null)
            {
                _list.Add(item);

                if (OnListOperation != null)
                {
                    OnListOperation.Invoke(this, new EventArgsOperationAndArg("Add", item.ToString()));
                }
            }
        }