Example #1
0
        public Dictionary<ChartInfo, Dictionary<String, List<PerformanceValue>>> GetCaseData()
        {
            List<WatcherInfo> watchers = Utility.GetLastWatcherTypes(_selectInfo.LastTime, _caseInfo.CaseName);

            Dictionary<ChartInfo, Dictionary<String, List<PerformanceValue>>> chartsOfOneCase =
                new Dictionary<ChartInfo, Dictionary<string, List<PerformanceValue>>>();

            foreach (WatcherInfo watcher in watchers)
            {
                ChartInfo chartInfo = new ChartInfo();
                chartInfo.CaseName = _caseInfo.CaseName;
                chartInfo.CaseDes = _caseInfo.CaseDes;
                chartInfo.WatcherType = watcher.WatcherType;
                chartInfo.ValueUnit = watcher.WatcherUnit;
                chartInfo.ControlName = _caseInfo.ControlName;

                ChartData chartData = new ChartData(_selectInfo, chartInfo);

                Dictionary<String, List<PerformanceValue>> chartd = chartData.GetChartData();
                chartsOfOneCase.Add(chartInfo, chartd);
            }

            return chartsOfOneCase; //caseDatas.Count > 0 ? caseDatas : null;
        }
Example #2
0
 public ChartData(SelectInfoInternal selectInfo, ChartInfo chartInfo)
 {
     _selectInfo = selectInfo;
     _chartInfo = chartInfo;
 }