Example #1
0
 public BindableCodeTemplate Lookup(string name)
 {
     try
     {
         BindableCodeTemplate tmpl = AllTemplates.First <BindableCodeTemplate>(
             t => t.Name == name);
         return(tmpl);
     }
     catch (ArgumentNullException)
     {
         return(null);
     }
     catch (InvalidOperationException)
     {
         return(null);
     }
 }
 private CompoundProcessDTO selectUsedTemplateFor(CompoundProcess compoundProcess)
 {
     return(AllTemplates.First(x => x.TemplateName == compoundProcess.InternalName));
 }