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