/// <summary> /// Removes the specified channel. /// </summary> /// <param name="channel">The channel to remove.</param> public void RemoveChannel(MotionChannel channel) { if (!channels.Contains(channel)) { throw new ArgumentException("channel", "Channel list does not contain the specified channel"); } int channelIndex = channels.IndexOf(channel); RemoveChannel(channelIndex); }
/// <summary> /// Adds the specified channel. /// </summary> /// <param name="channel">The channel to add.</param> public void AddChannel(MotionChannel channel) { channel.FrameCount = frameCount; channels.Add(channel); }