﻿using System.Collections.ObjectModel;
using System.Windows.Input;
using App.UI.Commands;
using AppUI.Model;

namespace App.UI.ViewModel
{
    public class ItemListVM
    {
        public ItemListVM()
        {
            Items = new ObservableCollection<Item>();
            AddItem = new AddItemCommand(this);

            AddItem.Execute(null);
            AddItem.Execute(null);
            AddItem.Execute(null);
        }
        public Item SelectedItem { get; set; }
        public ObservableCollection<Item> Items { get; set; }

        public ICommand AddItem { get; set; }
    }
}