private void SetChartTitle(Chart chart, Approach approach, Dictionary <string, string> statistics) { var detectorsForMetric = approach.GetDetectorsForMetricType(this.MetricTypeID); string message = "\n Advanced detector located " + detectorsForMetric.FirstOrDefault().DistanceFromStopBar.ToString() + " ft. upstream of stop bar"; chart.Titles.Add(ChartTitleFactory.GetChartName(this.MetricTypeID)); chart.Titles.Add(ChartTitleFactory.GetSignalLocationAndDateRangeAndMessage(approach.SignalID, this.StartDate, this.EndDate, message)); chart.Titles.Add(ChartTitleFactory.GetPhaseAndPhaseDescriptions(approach.ProtectedPhaseNumber, approach.DirectionType.Description)); chart.Titles.Add(ChartTitleFactory.GetStatistics(statistics)); }
private void SetChartTitle(Chart chart, SignalPhase signalPhase, Dictionary <string, string> statistics) { var detectorsForMetric = signalPhase.Approach.GetDetectorsForMetricType(MetricTypeID); var message = "\n Advanced detector located " + detectorsForMetric.FirstOrDefault().DistanceFromStopBar + " ft. upstream of stop bar"; chart.Titles.Add(ChartTitleFactory.GetChartName(MetricTypeID)); chart.Titles.Add( ChartTitleFactory.GetSignalLocationAndDateRangeAndMessage(signalPhase.Approach.SignalID, StartDate, EndDate, message)); chart.Titles.Add(ChartTitleFactory.GetPhaseAndPhaseDescriptions(signalPhase.Approach, signalPhase.GetPermissivePhase)); chart.Titles.Add(ChartTitleFactory.GetStatistics(statistics)); }