Example #1
0
 public virtual void Remove(int index)
 {
     lock (this)
     {
         CheckForClosed();
         if (index >= 0 && index < itemList.Count)
         {
             VsaItem item = (VsaItem)(itemList[index]);
             item.RemovingItem();
             itemList.RemoveAt(index);
             engine.IsDirty = true;
         }
         else
         {
             throw new VsaException(VsaError.ItemNotFound);
         }
     }
 }