private async Task AddTemplateAsync(TemplateInfoViewModel selectedTemplate)
 {
     if (selectedTemplate.MultipleInstance || !UserSelection.IsTemplateAdded(selectedTemplate))
     {
         await UserSelection.AddAsync(TemplateOrigin.UserSelection, selectedTemplate);
     }
 }
예제 #2
0
 private async Task AddTemplateAsync(TemplateInfoViewModel selectedTemplate)
 {
     if (!selectedTemplate.Disabled && selectedTemplate.CanBeAdded)
     {
         await UserSelection.AddAsync(TemplateOrigin.UserSelection, selectedTemplate);
     }
 }