2022-12-12 22:33:17 +08:00
|
|
|
|
using System.Collections.Generic;
|
2021-07-23 09:42:22 +08:00
|
|
|
|
using System.Collections.ObjectModel;
|
2022-10-28 22:45:39 +08:00
|
|
|
|
using AIStudio.Wpf.DiagramDesigner;
|
2021-07-23 09:42:22 +08:00
|
|
|
|
|
2021-07-29 13:55:18 +08:00
|
|
|
|
namespace AIStudio.Wpf.Logical.ViewModels
|
2021-07-23 09:42:22 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is passed to the PopupWindow.xaml window, where a DataTemplate is used to provide the
|
|
|
|
|
|
/// ContentControl with the look for this data. This class is also used to allow
|
|
|
|
|
|
/// the popup to be cancelled without applying any changes to the calling ViewModel
|
|
|
|
|
|
/// whos data will be updated if the PopupWindow.xaml window is closed successfully
|
|
|
|
|
|
/// </summary>
|
2022-12-12 22:33:17 +08:00
|
|
|
|
public class LogicalGateItemData : BindableBase
|
2021-07-23 09:42:22 +08:00
|
|
|
|
{
|
2022-12-12 22:33:17 +08:00
|
|
|
|
private string _title;
|
|
|
|
|
|
public string Title
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return _title;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
SetProperty(ref _title, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-07-23 09:42:22 +08:00
|
|
|
|
public LogicalGateItemData(IEnumerable<FullyCreatedConnectorInfo> inputvalues)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.InputValues = new ObservableCollection<FullyCreatedConnectorInfo>(inputvalues);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<FullyCreatedConnectorInfo> _inputValues;
|
|
|
|
|
|
public ObservableCollection<FullyCreatedConnectorInfo> InputValues
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return _inputValues;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
SetProperty(ref _inputValues, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|