Beispiel #1
0
        /// <summary>
        /// 增加测试图形
        /// </summary>
        private void AddCharts()
        {
            _chartDic.Clear();

            _aChart = new VsAChart(this.tabControlChart);
            _aChart.ChartClear();
            foreach (var VARIABLE in _testConfigs)
            {
                foreach (var test in VARIABLE.AnalyzeItems)
                {
                    object chart = _aChart.ChartAdd(test);
                    _chartDic.Add(test, chart);
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// 测试数据,状态初始化
 /// </summary>
 /// <param name="formUi"></param>
 /// <param name="chartDic"></param>
 /// <param name="aChart"></param>
 private void TestInitia(FormUi formUi, Dictionary <string, object> chartDic,
                         AChart aChart)
 {
     formUi.ProgressDisplay(0, false);
     formUi.AddStatus(LanguageHelper.GetMsgText("测试开始"));
     formUi.SetResult("TEST");
     _testData.Clear();
     _testResult.Clear();
     _specLine.Clear();
     chartDic.ForEach(t =>
     {
         formUi.AddStatus(LanguageHelper.GetMsgText("清除图形") + ":" + t.Key);
         aChart.ChartClear(t.Value);
     });
 }