public StrataListPropertyAdapter(StrataPropertyListAccess <TStrataElementValue> referenceAccess, ConvertAccessToOutput factory)
        {
            this.Access         = referenceAccess;
            m_referenceElements = referenceAccess.Elements;
            ((INotifyCollectionChanged)m_referenceElements).CollectionChanged += this.ListAccessElementsCache_OnCollectionChanged;

            m_sb          = referenceAccess.ODAM.SB;
            m_factory     = factory;
            this.Elements = new ReadOnlyObservableCollection <TAdaptedElementValue>(m_elements);
            this.Reset();
        }
Exemple #2
0
 public StrataPropertyAdapter(StrataPropertyValueAccess <TStrataValue> access, ConvertAccessToOutput factory)
 {
     this.Access = access;
     m_factory   = factory;
     this.Reset();
 }
Exemple #3
0
 public StrataPropertyAdapter(Stratabase sb, Guid itemId, string propertyName, ConvertAccessToOutput factory)
     : this(sb.GeneratePropertyAccess <TStrataValue>(itemId, propertyName), factory)
 {
 }