private void OKButton_Click(object sender, EventArgs e) { foreach (CalculationControl calculation in calculationContainer.Controls) { _configuration.Calculations[calculation.Value] = calculation.Factor; } _controller?.SaveStrategyConfigurations(_configuration); _controller?.UpdateStatisticsConfiguration(StatisticsEnabledCheckBox.Checked); Close(); }