public override void DeleteAt(int index) { intervalsManager = null; length--; if (positions.Contains(index)) { positions.Remove(index); } for (int i = 0; i < positions.Count; i++) { if (index < positions[i]) { positions[i]--; } } }