public void DeleteFrame(int index) { if (index < 0 || index >= this.Frames.Count - 1) { throw new ArgumentException("Index is out of range.", "index"); } this.frames.RemoveAt(index); }