示例#1
0
        public void InitFunctionResultArea(FunctionBase function)
        {
            RefreshMeasureAndFunctionPanel();
            if (null == function)
            {
                return;
            }
            const string parameterColumnTitle = "Parameter";
            const string valueColumnTitle     = "Value";

            easyChartX_function.AxisX.Title = function.ChartXTitle;
            easyChartX_function.AxisY.Title = function.ChartYTitle;
            label_XValueLabel.Text          = string.Format(function.XValueLabelFormat, 0);
            label_YValueLabel.Text          = string.Format(function.YValueLabelFormat, 0);
            _functionXValueFormat           = function.XValueLabelFormat;
            _functionYValueFormat           = function.YValueLabelFormat;
            splitContainer_functionDataAndDetail.Panel1Collapsed = !function.HasPlotData;
            splitContainer_functionDataAndDetail.Panel2Collapsed = !function.HasDetailedData;
            dataGridView_functionDetail.Rows.Clear();
            if (function.HasDetailedData)
            {
//                dataGridView_functionDetail.Rows.Add(parameterColumnTitle, valueColumnTitle);
                foreach (string parameter in function.DetailParameters)
                {
                    dataGridView_functionDetail.Rows.Add(parameter, "");
                }
            }
            if (function.HasPlotData)
            {
                function.ConfigChart(easyChartX_function);
                easyChartX_function.Clear();
            }
        }