using System.Collections.Generic;
using System.Collections.ObjectModel;
using AIStudio.Wpf.DiagramDesigner;
namespace AIStudio.Wpf.Logical.ViewModels
{
///
/// 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
///
public class LogicalGateItemData : BindableBase
{
private string _title;
public string Title
{
get
{
return _title;
}
set
{
SetProperty(ref _title, value);
}
}
public LogicalGateItemData(IEnumerable inputvalues)
{
this.InputValues = new ObservableCollection(inputvalues);
}
private ObservableCollection _inputValues;
public ObservableCollection InputValues
{
get
{
return _inputValues;
}
set
{
SetProperty(ref _inputValues, value);
}
}
}
}