public StreamInfoPreset AddPreset(string presetName) { var newPreset = new StreamInfoPreset() { PresetName = presetName }; newPreset.StreamTopics = new List <StreamInfo>(); GetStreamTopics((streams) => { streams.ForEach(stream => newPreset.StreamTopics.Add(stream.Info.GetCopy())); }); presets.Add(newPreset); return(presets.Last()); }
public void RemovePreset(StreamInfoPreset preset) { presets.Remove(preset); }