public TemplateInfoViewModel(ITemplateInfo template, IEnumerable <ITemplateInfo> dependencies) { Template = template; IsItemNameEditable = template.GetItemNameEditable(); DefaultName = template.GetDefaultName(); Group = template.GetGroup(); Icon = template.GetIcon(); Name = template.Name; Author = template.Author; Order = template.GetOrder(); Summary = template.Description; Identity = template.Identity; Version = template.GetVersion(); TemplateType = template.GetTemplateType(); Description = template.GetRichDescription(); DependencyItems.AddRange(dependencies.Select(d => new DependencyInfoViewModel(new TemplateInfoViewModel(d, GenComposer.GetAllDependencies(d, MainViewModel.Current.ConfigFramework))))); LicenseTerms = template.GetLicenses(); }