Example #1
0
        internal StrataPropertyAccessBase(Stratabase.ObjectDataAccessManager odam, string propertyName)
        {
            this.ODAM         = odam;
            this.PropertyName = propertyName;

            this.ODAM.LayerDataSet     += this.OnLayerDataSet;
            this.ODAM.LayerDataRemoved += this.OnLayerDataRemoved;

            if (this.IsSet = this.ODAM.TryFindActiveLayer(this.PropertyName, out int activeLayer))
            {
                this.ActiveLayerIndex = activeLayer;
                this.IsBaselineSet    = this.ODAM.TryGetBaselineValue <object>(this.PropertyName, out _);
            }
        }
Example #2
0
 // =========================[ Construction ]===================================
 internal StrataPropertyListAccess(Stratabase.ObjectDataAccessManager owner, string propertyName)
     : base(owner, propertyName)
 {
     this.Elements = new ReadOnlyObservableCollection <TElement>(m_currentListCache);
     this.Reset();
 }