private void resultButton_Click(object sender, EventArgs e)
        {
            int initialModel = 1;

            if (this.sesRdb.Checked == true)
            {
                initialModel = 1;
            }
            else if (this.brownRdb.Checked == true)
            {
                initialModel = 2;
            }
            else if (this.holtRdb.Checked == true)
            {
                initialModel = 3;
            }
            else if (this.winterRdb.Checked == true)
            {
                initialModel = 4;
            }

            ESSelectResultView result = new ESSelectResultView();

            // sending current value
            result.IsEsModelSummaryChecked = this.isEsModelSummaryChecked;
            result.IsExponentialSmoothingDataGridChecked = this.isExponentialSmoothingDataGridChecked;
            result.IsSmoothingChecked                = this.isSmoothingChecked;
            result.IsTrendChecked                    = this.isTrendChecked;
            result.IsSeasonalChecked                 = this.isSeasonalChecked;
            result.IsForecastedDataGridChecked       = this.isForecastedDataGridChecked;
            result.IsActualAndPredictedGraphChecked  = this.isActualAndPredictedGraphChecked;
            result.IsActualAndSmoothedGraphChecked   = this.isActualAndSmoothedGraphChecked;
            result.IsActualAndForecastedGraphChecked = this.isActualAndForecastedGraphChecked;
            result.IsActualVsPredictedGraphChecked   = this.isActualVsPredictedGraphChecked;
            result.IsResidualGraphChecked            = this.isResidualGraphChecked;
            result.IsResidualVsActualGraphChecked    = this.isResidualVsActualGraphChecked;
            result.IsResidualVsPredictedGraphChecked = this.isResidualVsPredictedGraphChecked;
            result.ForecastingStep                   = this.forecastingStep;

            result.SetInitialModel(initialModel);

            result.ShowDialog();
            if (result.DialogResult == DialogResult.OK)
            {
                //accepting selected value
                this.isEsModelSummaryChecked = result.IsEsModelSummaryChecked;
                this.isExponentialSmoothingDataGridChecked = result.IsExponentialSmoothingDataGridChecked;
                this.isSmoothingChecked                = result.IsSmoothingChecked;
                this.isTrendChecked                    = result.IsTrendChecked;
                this.isSeasonalChecked                 = result.IsSeasonalChecked;
                this.isForecastedDataGridChecked       = result.IsForecastedDataGridChecked;
                this.isActualAndPredictedGraphChecked  = result.IsActualAndPredictedGraphChecked;
                this.isActualAndSmoothedGraphChecked   = result.IsActualAndSmoothedGraphChecked;
                this.isActualAndForecastedGraphChecked = result.IsActualAndForecastedGraphChecked;
                this.isActualVsPredictedGraphChecked   = result.IsActualVsPredictedGraphChecked;
                this.isResidualGraphChecked            = result.IsResidualGraphChecked;
                this.isResidualVsActualGraphChecked    = result.IsResidualVsActualGraphChecked;
                this.isResidualVsPredictedGraphChecked = result.IsResidualVsPredictedGraphChecked;
                this.forecastingStep                   = result.ForecastingStep;
            }
        }
        private void resultButton_Click(object sender, EventArgs e)
        {
            int initialModel = 1;
            if (this.sesRdb.Checked == true)
                initialModel = 1;
            else if (this.brownRdb.Checked == true)
                initialModel = 2;
            else if (this.holtRdb.Checked == true)
                initialModel = 3;
            else if (this.winterRdb.Checked == true)
                initialModel = 4;

            ESSelectResultView result = new ESSelectResultView();

            // sending current value
            result.IsEsModelSummaryChecked = this.isEsModelSummaryChecked;
            result.IsExponentialSmoothingDataGridChecked = this.isExponentialSmoothingDataGridChecked;
            result.IsSmoothingChecked = this.isSmoothingChecked;
            result.IsTrendChecked = this.isTrendChecked;
            result.IsSeasonalChecked = this.isSeasonalChecked;
            result.IsForecastedDataGridChecked = this.isForecastedDataGridChecked;
            result.IsActualAndPredictedGraphChecked = this.isActualAndPredictedGraphChecked;
            result.IsActualAndSmoothedGraphChecked = this.isActualAndSmoothedGraphChecked;
            result.IsActualAndForecastedGraphChecked = this.isActualAndForecastedGraphChecked;
            result.IsActualVsPredictedGraphChecked = this.isActualVsPredictedGraphChecked;
            result.IsResidualGraphChecked = this.isResidualGraphChecked;
            result.IsResidualVsActualGraphChecked = this.isResidualVsActualGraphChecked;
            result.IsResidualVsPredictedGraphChecked = this.isResidualVsPredictedGraphChecked;
            result.ForecastingStep = this.forecastingStep;

            result.SetInitialModel(initialModel);

            result.ShowDialog();
            if (result.DialogResult == DialogResult.OK)
            {
                //accepting selected value
                this.isEsModelSummaryChecked = result.IsEsModelSummaryChecked;
                this.isExponentialSmoothingDataGridChecked = result.IsExponentialSmoothingDataGridChecked;
                this.isSmoothingChecked = result.IsSmoothingChecked;
                this.isTrendChecked = result.IsTrendChecked;
                this.isSeasonalChecked = result.IsSeasonalChecked;
                this.isForecastedDataGridChecked = result.IsForecastedDataGridChecked;
                this.isActualAndPredictedGraphChecked = result.IsActualAndPredictedGraphChecked;
                this.isActualAndSmoothedGraphChecked = result.IsActualAndSmoothedGraphChecked;
                this.isActualAndForecastedGraphChecked = result.IsActualAndForecastedGraphChecked;
                this.isActualVsPredictedGraphChecked = result.IsActualVsPredictedGraphChecked;
                this.isResidualGraphChecked = result.IsResidualGraphChecked;
                this.isResidualVsActualGraphChecked = result.IsResidualVsActualGraphChecked;
                this.isResidualVsPredictedGraphChecked = result.IsResidualVsPredictedGraphChecked;
                this.forecastingStep = result.ForecastingStep;

            }
        }