private void UpdateDeltaViewAsync(double startTime, double endTime, TreePerspective perspective) { this.Invoke((Action) delegate() { m_StripStatus.Text = "Replaying events.."; }); TraceReplayStateful.StatusDelegate replayCallback = (double ratio) => { this.Invoke((Action) delegate() { m_ReplayProgress.Value = (int)Math.Round(1000.0 * ratio); }); }; TreeBuilderBase tree_builder; tree_builder = new DeltaTreeBuilder(m_Trace, startTime, endTime, replayCallback, perspective, m_Options); this.Invoke((Action) delegate() { m_StripStatus.Text = "Building report tree.."; }); var root = tree_builder.BuildReportTree(); this.Invoke((Action) delegate() { OnTreeUpdated(root); }); }
private void UpdateDeltaViewAsync(double startTime, double endTime, TreePerspective perspective) { this.Invoke((Action)delegate() { m_StripStatus.Text = "Replaying events.."; }); TraceReplayStateful.StatusDelegate replayCallback = (double ratio) => { this.Invoke((Action)delegate() { m_ReplayProgress.Value = (int)Math.Round(1000.0 * ratio); }); }; TreeBuilderBase tree_builder; tree_builder = new DeltaTreeBuilder(m_Trace, startTime, endTime, replayCallback, perspective, m_Options); this.Invoke((Action)delegate() { m_StripStatus.Text = "Building report tree.."; }); var root = tree_builder.BuildReportTree(); this.Invoke((Action)delegate() { OnTreeUpdated(root); }); }