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; }
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; }
public PBCollectionDSP(IWatchAPropItemGen propItemWatcher /*, bool isAsynchronous*/) { _propItemWatcherGen = propItemWatcher; }