示例#1
0
 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);
     }
 }
示例#2
0
 public void SaveStreamTemplates(IModel model)
 {
     converter.ExportStreams(model, streamTemplatePath);
     cachedStreams = model.Streams;
 }
示例#3
0
 public void SaveStreamTemplates(IModel model)
 {
     converter.ExportStreams(model, streamTemplatePath);
     cachedStreams = model.Streams;
 }