/// <summary> /// Remove the camera at the given index from this layer's camera list. /// </summary> /// <param name="index">The index of the camera to remove.</param> /// <returns>The removed camera.</returns> public virtual PCamera RemoveCamera(int index) { PCamera camera = cameras[index]; cameras.RemoveAt(index); InvalidatePaint(); return(camera); }
/// <summary> /// Remove the camera at the given index from this layer's camera list. /// </summary> /// <param name="index">The index of the camera to remove.</param> /// <returns>The removed camera.</returns> public virtual PCamera RemoveCamera(int index) { PCamera camera = cameras[index]; cameras.RemoveAt(index); InvalidatePaint(); FirePropertyChangedEvent(PROPERTY_KEY_CAMERAS, PROPERTY_CODE_CAMERAS, null, cameras); return(camera); }