InitChart() public méthode

Sets the chart parameters
public InitChart ( Over_optimization_Data_Table table ) : void
table Over_optimization_Data_Table
Résultat void
        /// <summary>
        /// Shows next chart.
        /// </summary>
        void ShowNextChart()
        {
            currentChartNumber++;
            if (currentChartNumber >= tableReport.Length)
            {
                currentChartNumber = 0;
            }

            currentChart.Parent = this;
            currentChart.InitChart(tableReport[currentChartNumber]);
            currentChart.Invalidate();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public Over_optimization_Charts_Form(Over_optimization_Data_Table[] tableReport)
        {
            this.tableReport = tableReport;

            Text            = Language.T("Over-optimization Report");
            Icon            = Data.Icon;
            FormBorderStyle = FormBorderStyle.Sizable;
            AcceptButton    = btnClose;

            // Button Close
            btnNextCharts                         = new Button();
            btnNextCharts.Parent                  = this;
            btnNextCharts.Text                    = Language.T("Next Chart");
            btnNextCharts.Click                  += new EventHandler(BtnNextCharts_Click);
            btnNextCharts.DoubleClick            += new EventHandler(BtnNextCharts_Click);
            btnNextCharts.MouseWheel             += new MouseEventHandler(Chart_MouseWheel);
            btnNextCharts.KeyUp                  += new KeyEventHandler(NextCharts_KeyUp);
            btnNextCharts.UseVisualStyleBackColor = true;

            // Button Close
            btnClose                         = new Button();
            btnClose.Parent                  = this;
            btnClose.Text                    = Language.T("Close");
            btnClose.DialogResult            = DialogResult.Cancel;
            btnClose.UseVisualStyleBackColor = true;

            currentChart        = new Over_optimization_Charts();
            currentChart.Parent = this;
            currentChart.InitChart(tableReport[currentChartNumber]);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public Over_optimization_Charts_Form(Over_optimization_Data_Table[] tableReport)
        {
            this.tableReport = tableReport;

            Text            = Language.T("Over-optimization Report");
            Icon            = Data.Icon;
            FormBorderStyle = FormBorderStyle.Sizable;
            AcceptButton    = btnClose;

            // Button Close
            btnNextCharts = new Button();
            btnNextCharts.Parent = this;
            btnNextCharts.Text = Language.T("Next Chart");
            btnNextCharts.Click += new EventHandler(BtnNextCharts_Click);
            btnNextCharts.UseVisualStyleBackColor = true;

            // Button Close
            btnClose = new Button();
            btnClose.Parent = this;
            btnClose.Text   = Language.T("Close");
            btnClose.DialogResult = DialogResult.Cancel;
            btnClose.UseVisualStyleBackColor = true;

            currentChart = new Over_optimization_Charts();
            currentChart.Parent = this;
            currentChart.InitChart(tableReport[currentChartNumber]);
        }
Exemple #4
0
        /// <summary>
        /// Opens next chart.
        /// </summary>
        void BtnNextCharts_Click(object sender, EventArgs e)
        {
            currentChartNumber++;
            if (currentChartNumber >= tableReport.Length)
            {
                currentChartNumber = 0;
            }

            currentChart.Parent = this;
            currentChart.InitChart(tableReport[currentChartNumber]);
            currentChart.Invalidate();
        }