private void SystemAdjustments_KeyPress(object sender, KeyPressEventArgs e)
        {
            Label lS = new Label();

            lS.Size = new Size(adj1.Size.Width, r1);  //
            switch (e.KeyChar)
            {
            case (Char)Keys.U:
            { if ((adjControl.Size.Height <= lS.Size.Height + 5) && (adjControl.Size.Height >= lS.Size.Height - 5))
              {
                  // adj is ok
                  mainScen.solveProblem();
                  adjTimer.Start();
                  adjTimer.Enabled = true;
              }
              else
              {
                  adjControl.Size     = new Size(adjControl.Size.Width, adjControl.Size.Height + 1);
                  adjControl.Location = new Point(adjControl.Location.X, horizontalAxe.Location.Y - adjControl.Height);
                  setAdj(adjControl);
              }
              break; }

            case (Char)Keys.D:
            {
                if ((adjControl.Size.Height <= lS.Size.Height + 5) && (adjControl.Size.Height >= lS.Size.Height - 5))
                {
                    // adj is ok
                    mainScen.solveProblem();
                }
                else
                {
                    adjControl.Size     = new Size(adjControl.Size.Width, adjControl.Size.Height - 1);
                    adjControl.Location = new Point(adjControl.Location.X, horizontalAxe.Location.Y - adjControl.Height);
                    setAdj(adjControl);
                }
                break;
            }
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if ((this.button1.Text == "Update") && (comboBox1.SelectedIndex > -1 || comboBox2.SelectedIndex > -1 || comboBox3.SelectedIndex > -1))
            {
                this.button1.Text = "Validate";
                this.label4.Text  = null;
            }
            else if (this.button1.Text == "Validate")
            {
                if (mainScen.getProblem() == 3 || mainScen.getProblem() == 4)
                {
                    if (comboBox1.SelectedIndex < 4)                     // TWT1 Serial Numbers
                    {
                        mainScen.solveProblem();
                    }
                }
                else if (mainScen.getProblem() == 5 || mainScen.getProblem() == 6)
                {
                    if (comboBox1.SelectedIndex > 3)                      // TWT2 Serial Numbers
                    {
                        mainScen.solveProblem();
                    }
                }
                else if (mainScen.getProblem() == 8 && comboBox3.SelectedIndex > 3)    // index 4 and above are CCAs after implementation
                {
                    mainScen.solveProblem();
                }

                else if (mainScen.getProblem() > 10 && comboBox2.SelectedIndex > -1)   // all Power Supplies are similar
                {
                    mainScen.solveProblem();
                }

                this.Hide();
                frmMCS.Show();
            }
        }