public virtual void Insert(object obj, int position) { if (position < ItemCount) { BaseObjects.Insert(position, obj); NotifyItemInserted(position); } else { Add(obj); } }
public virtual void Update(object obj, int position) { BaseObjects.RemoveAt(position); BaseObjects.Insert(position, obj); NotifyItemChanged(position); }