Пример #1
0
        private void RefreshVData(List <TestPoint> dataList)
        {
            //_dataSource.Clear();
            //_dataSource.AddRange(dataList);
            dataGridView.DataSource = dataList;

            //更新曲线图
            DrawClass.DrawVData(myChart, dataList, "数据1");
        }
Пример #2
0
        private void RefreshLineErrorData(List <TestPoint> dataList)
        {
            //_dataSource.Clear();
            //_dataSource.AddRange(dataList);
            this.Invoke(new Action(() =>
            {
                dataGridView.DataSource         = dataList;
                dataGridView.Columns[2].Visible = true;

                //更新曲线图
                DrawClass.DrawLineError(myChart, dataList, "线性曲线", _upError, _downError);
            }));
        }