public PBCollectionDSP_Provider(PropKindEnum propKind, IWatchAPropItemGen propItemWatcherGen)
        {
            _propKind = propKind;

            if (!(_propKind == PropKindEnum.ObservableCollection /* || _propKind == PropKindEnum.ObservableCollectionFB*/))
            {
                throw new NotSupportedException($"This IProvideADataSourceProvider {nameof(PBCollectionDSP_Provider)} cannot create a DataSourceProvider for Prop Items with Kind = {_propKind}.");
            }

            _isReadOnly         = false;
            _propItemWatcherGen = propItemWatcherGen;
        }
示例#2
0
        public PBCollectionDSP(IWatchAPropItemGen propItemWatcher /*, bool isAsynchronous*/)
        {
            //_storeAccessor = storeAccessor;
            //_propId = propId;
            ////IsAsynchronous = isAsynchronous;

            //if(!(StartWatchingProp(_storeAccessor, _propId, ref _unsubscriber)))
            //{
            //    throw new InvalidOperationException($"PB Collection could not subscribe to PropertyChanged (EventHandler<PcGenEventArgs) on the property with Id: {_propId}.");
            //}

            _propItemWatcherGen = propItemWatcher;
        }
示例#3
0
 public PBCollectionDSP(IWatchAPropItemGen propItemWatcher /*, bool isAsynchronous*/)
 {
     _propItemWatcherGen = propItemWatcher;
 }