26 lines
582 B
C#
26 lines
582 B
C#
using BeWo.View.Detail.AI;
|
|
using BS.Shared;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace BeWo.Services
|
|
{
|
|
internal class BeWoControlFactory : IControlFactory
|
|
{
|
|
public Control GetAiConversationControl(UIContext uIContext, Dictionary<TableID, long[]> context)
|
|
{
|
|
var control = new AiConversationChatView();
|
|
|
|
control.ViewModel.UIContext = (int)uIContext;
|
|
control.ViewModel.ContextBeWoObjects = context;
|
|
|
|
return control;
|
|
}
|
|
}
|
|
}
|