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