public IEnumerable <IStreamItem> LoadStreamTemplates() { if (File.Exists(streamTemplatePath)) { var streams = converter.ImportStreams(streamTemplatePath).Streams; cachedStreams = streams; return(streams); } else { IModel tmpModel = GetDefaultStreams(); SaveStreamTemplates(tmpModel); return(tmpModel.Streams); } }
public void SaveStreamTemplates(IModel model) { converter.ExportStreams(model, streamTemplatePath); cachedStreams = model.Streams; }