48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using BeWo.ServiceProxy;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.Extensions;
|
|
using ChatController.Utilities.Extensions;
|
|
using DevExpress.Mvvm;
|
|
using DevExpress.XtraPrinting.Native;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Threading;
|
|
|
|
namespace BeWo.ViewModel.ListViewModel
|
|
{
|
|
public class AiConversationListVM : AbstractDCListMapperVM<AiConversationDC, AiConversationVM>
|
|
{
|
|
private AiModelDC _SelectedModel;
|
|
|
|
public AiConversationListVM() : this(null)
|
|
{
|
|
VMList.Add(new AiConversationVM()
|
|
{
|
|
Created = DateTime.Now,
|
|
Displayname = "Chat1"
|
|
});
|
|
}
|
|
public AiConversationListVM(List<AiConversationDC> pDCs) : base(pDCs)
|
|
{
|
|
Models = new ObservableSortCollection<AiModelDC>();
|
|
}
|
|
|
|
public ObservableCollection<AiModelDC> Models { get; set; }
|
|
public AiModelDC SelectedModel {
|
|
get { return _SelectedModel; }
|
|
set
|
|
{
|
|
if (_SelectedModel == value)
|
|
return;
|
|
|
|
_SelectedModel = value;
|
|
FirePropertyChanged(nameof(SelectedModel));
|
|
}
|
|
}
|
|
}
|
|
}
|