void StoreExpandedState() { if (m_ExpandedMarkerIdPaths != null) { return; } if (m_FrameDataView == null || !m_FrameDataView.IsValid()) { return; } var oldExpanded = GetExpanded(); if (oldExpanded.Count == 0) { return; } m_ExpandedMarkerIdPaths = new HashSet <FrameDataView.MarkerPath>(); foreach (var expanded in oldExpanded) { var markerIdPath = m_FrameDataView.GetItemMarkerIDPath(expanded); m_ExpandedMarkerIdPaths.Add(markerIdPath); } }
void StoreSelectedState() { if (m_SelectedItemMarkerIdPath != null || m_LegacySelectedItemMarkerNamePath != null) { return; } if (m_FrameDataView == null || !m_FrameDataView.IsValid()) { return; } var oldSelection = GetSelection(); if (oldSelection.Count == 0) { return; } m_SelectedItemMarkerIdPath = m_FrameDataView.GetItemMarkerIDPath(oldSelection[0]); }