private bool IsMigratedExpanded(int id) { bool result; if (this.m_ExpandedMarkerIdPaths == null) { result = base.IsExpanded(id); } else { FrameDataView.MarkerPath itemMarkerIDPath = this.m_FrameDataView.GetItemMarkerIDPath(id); result = this.m_ExpandedMarkerIdPaths.Contains(itemMarkerIDPath); } return(result); }
private void StoreExpandedState() { if (this.m_ExpandedMarkerIdPaths == null) { if (this.m_FrameDataView != null && this.m_FrameDataView.IsValid()) { IList <int> expanded = base.GetExpanded(); if (expanded.Count != 0) { this.m_ExpandedMarkerIdPaths = new HashSet <FrameDataView.MarkerPath>(); foreach (int current in expanded) { FrameDataView.MarkerPath itemMarkerIDPath = this.m_FrameDataView.GetItemMarkerIDPath(current); this.m_ExpandedMarkerIdPaths.Add(itemMarkerIDPath); } } } } }