private void GetValues()
        {
            // Clear
            ValuesTextBox.Clear();

            // Get values
            var proposedValues = _controller.GetProposedSeriesValuesFromPerformanceCurveChart();

            // Populate textbox
            foreach (var proposedValue in proposedValues)
            {
                ValuesTextBox.Text += proposedValue + Environment.NewLine;
            }
        }
        private void UpdateButton_Click(object sender, EventArgs e)
        {
            // If validation fails
            if (!ValidateValues())
            {
                MessageBox.Show(
                    $"An error has occured.{Environment.NewLine}{Environment.NewLine}" +
                    "Please check there are exactly 120 integer values and try again.",
                    Settings.Default.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Error);

                ValuesTextBox.Focus();
                ValuesTextBox.SelectAll();
                return;
            }

            // Else
            SetValues();
            Close();
        }
 private void ResetButton_Click(object sender, EventArgs e)
 {
     GetValues();
     ValuesTextBox.Focus();
     ValuesTextBox.SelectAll();
 }