Beispiel #1
0
 public bool Remove(int index) //Удаление элемента по индексу
 {
     if (index < 0 || index >= myCollection.Count)
     {
         return(false);
     }
     OnCollectionCountChanged(this, new CollectionHandlerEventArgs(NameCollection, "delete", myCollection[index - 1]));
     myCollection.RemoveAt(index - 1);
     return(true);
 }