using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace GridViewDataTableFilter
{
    public class RowViewModel : INotifyPropertyChanged
    {
        private Dictionary<MyEnum, MyDemoList> dictionary;

        public Dictionary<MyEnum, MyDemoList> Dictionary 
        { 
            get => dictionary; set
            {
                if(dictionary == value) return;
                dictionary = value;
                OnPropertyChanged();
            }
        }


        public event PropertyChangedEventHandler? PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
