using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.BL.Enumerations;
using Tango.SharedUI;
namespace Tango.PPC.Jobs.Dialogs
{
///
/// Represents a catalog picker.
///
///
public class CatalogSelectionViewVM : DialogViewVM
{
private ObservableCollection _catalogs;
///
/// Gets or sets the catalogs.
///
public ObservableCollection Catalogs
{
get { return _catalogs; }
set { _catalogs = value; RaisePropertyChangedAuto(); }
}
private ColorCatalog _selectedCatalog;
///
/// Gets or sets the selected catalog.
///
public ColorCatalog SelectedCatalog
{
get { return _selectedCatalog; }
set { _selectedCatalog = value; RaisePropertyChangedAuto(); }
}
///
/// Initializes a new instance of the class.
///
/// The catalogs.
/// The selected catalog.
public CatalogSelectionViewVM(List catalogs, ColorCatalog selectedCatalog) : base()
{
Catalogs = catalogs.ToObservableCollection();
SelectedCatalog = selectedCatalog;
}
}
}