using System.Collections.Generic;
using GalaSoft.MvvmLight;

namespace HandyControlDemo.Data
{
    public class DemoInfoModel : ViewModelBase
    {
        public string Key { get; set; }

        private string _title;

        public string Title
        {
            get => _title;
#if NET40
            set => Set(nameof(Title), ref _title, value);
#else
            set => Set(ref _title, value);
#endif
        }

        private int _selectedIndex;

        public int SelectedIndex
        {
            get => _selectedIndex;
#if NET40
            set => Set(nameof(SelectedIndex), ref _selectedIndex, value);
#else
            set => Set(ref _selectedIndex, value);
#endif   
        }

        public bool IsGroupEnabled { get; set; }

        public IList<DemoItemModel> DemoItemList { get; set; }
    }
}
