bool SelectAllFramesContainingMarker(string markerName, ProfileAnalysis inAnalysis) { if (inAnalysis == null) { return(false); } selectedIndices.Clear(); MarkerData markerData = inAnalysis.GetMarkerByName(markerName); if (markerData == null) { return(true); } foreach (var frameTime in markerData.frames) { selectedIndices.Add(frameTime.frameIndex); } // Order from lowest to highest so the start/end frame display makes sense selectedIndices.Sort(); return(true); }
private bool SelectAllFramesContainingMarker(string markerName, ProfileAnalysis inAnalysis) { if (inAnalysis == null) { return(false); } MarkerData markerData = inAnalysis.GetMarkerByName(markerName); if (markerData == null) { return(false); } selectedIndices.Clear(); foreach (var frameTime in markerData.frames) { selectedIndices.Add(frameTime.frameIndex); } return(true); }