public void Remove(MixerControl mixerControl) { if (this.InnerList.Contains(mixerControl)) { this.InnerList.Remove(mixerControl); return; } MixerControl mixerControlToRemove = null; foreach (MixerControl mixerControlLoop in this.InnerList) { if (mixerControlLoop.Id == mixerControl.Id && mixerControlLoop.Name == mixerControl.Name && mixerControlLoop.Line == mixerControl.Line) { mixerControlToRemove = mixerControlLoop; break; } } if (mixerControlToRemove != null) { this.InnerList.Remove(mixerControlToRemove); } }
public void Add(MixerControl mixerControl) { this.InnerList.Add(mixerControl); }