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 _); } }
// =========================[ Construction ]=================================== internal StrataPropertyListAccess(Stratabase.ObjectDataAccessManager owner, string propertyName) : base(owner, propertyName) { this.Elements = new ReadOnlyObservableCollection <TElement>(m_currentListCache); this.Reset(); }