35 lines
845 B
C#
35 lines
845 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BS.Shared.DataContracts.Feature.AI;
|
|
|
|
namespace BeWo.ViewModel.ListViewModel
|
|
{
|
|
public class AiPromptbausteinTreeListVM : AbstractDCListMapperVM<AiPromptbausteinTreeDC, AiPromptbausteinTreeVM>
|
|
{
|
|
public AiPromptbausteinTreeListVM() : this(null)
|
|
{
|
|
if (BeWoApp.IsInDesignMode)
|
|
{
|
|
InitDesigner();
|
|
}
|
|
}
|
|
|
|
public AiPromptbausteinTreeListVM(IEnumerable<AiPromptbausteinTreeDC> pDataContracts = null, AiPromptbausteinTreeVM aiPromptbausteinTreeVM = null) : base(pDataContracts)
|
|
{
|
|
foreach (var vm in VMList)
|
|
{
|
|
vm.Parent = aiPromptbausteinTreeVM;
|
|
}
|
|
}
|
|
|
|
#region Designer
|
|
private void InitDesigner()
|
|
{
|
|
var prompts = new PredefinedAiPromptbausteine();
|
|
|
|
VMList.Add(new AiPromptbausteinTreeVM(prompts.Zeiterfassung));
|
|
}
|
|
#endregion
|
|
}
|
|
}
|