private void resultButton_Click(object sender, EventArgs e) { MASelectResultView result = new MASelectResultView(); // sending current value result.IsMaModelSummaryChecked = this.isMaModelSummaryChecked; result.IsMovingAverageDataGridChecked = this.isMovingAverageDataGridChecked; result.IsSmoothingChecked = this.isSmoothingChecked; result.IsActualPredictedAndResidualChecked = this.isActualPredictedAndResidualChecked; 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.ShowDialog(); if (result.DialogResult == DialogResult.OK) { //accepting selected value this.isMaModelSummaryChecked = result.IsMaModelSummaryChecked; this.isMovingAverageDataGridChecked = result.IsMovingAverageDataGridChecked; this.isSmoothingChecked = result.IsSmoothingChecked; this.isActualPredictedAndResidualChecked = result.IsActualPredictedAndResidualChecked; 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) { MASelectResultView result = new MASelectResultView(); // sending current value result.IsMaModelSummaryChecked = this.isMaModelSummaryChecked; result.IsMovingAverageDataGridChecked = this.isMovingAverageDataGridChecked; result.IsSmoothingChecked = this.isSmoothingChecked; result.IsActualPredictedAndResidualChecked = this.isActualPredictedAndResidualChecked; 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.ShowDialog(); if (result.DialogResult == DialogResult.OK) { //accepting selected value this.isMaModelSummaryChecked = result.IsMaModelSummaryChecked; this.isMovingAverageDataGridChecked = result.IsMovingAverageDataGridChecked; this.isSmoothingChecked = result.IsSmoothingChecked; this.isActualPredictedAndResidualChecked = result.IsActualPredictedAndResidualChecked; 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; } }