Exemplo n.º 1
0
        object IObservableList.this[int index]
        {
            get
            {
                if (base[index] is ObservableListItem || base[index] is Dictionary <string, string> )
                {
                    return(ObservableListItemProxy <T> .Create(base[index], this));
                }
                else
                {
                    return(base[index]);
                }
            }
            set
            {
                var guid = GetGUID(base[index]);

                base[index] = (T)value;

                itemGuids[guid] = (T)value;

                itemChanged(index, value, null);
            }
        }
Exemplo n.º 2
0
        public new T this[int index]
        {
            get
            {
                if (base[index] is ObservableListItem)
                {
                    return(ObservableListItemProxy <T> .Create(base[index], this));
                }
                else
                {
                    return(base[index]);
                }
            }
            set
            {
                var guid = GetGUID(base[index]);

                base[index] = value;

                itemGuids[guid] = value;

                itemChanged(index, value, null);
            }
        }