private void diagnosticsTimer_Tick(object sender, EventArgs e)
        {
            dtStop++;
            if (dtStop < 10)
            {
                // flashing text
                if (this.checkMsg.Visible == false)
                {
                    this.checkMsg.Visible = true;
                }
                else
                {
                    this.checkMsg.Visible = false;
                }
            }
            else
            {
                diagnosticsTimer.Stop();
                if (mainScen.problemSolved())
                {
                    this.checkMsg.Text    = "The System is ready to fire!";
                    this.checkMsg.Visible = true;
                }
                else
                {
                    this.checkMsg.Text = "Diagnosted a Problem in ";
                    if (mainScen.getProblem() <= 6)
                    {
                        this.checkMsg.Text += "Radar System";
                        if (mainScen.getProblem() == 3 || mainScen.getProblem() == 4)
                        {
                            this.checkMsg.Text += " (TWT1) ";
                        }
                        else if (mainScen.getProblem() == 5 || mainScen.getProblem() == 6)
                        {
                            this.checkMsg.Text += " (TWT2) ";
                        }
                    }
                    else if (mainScen.getProblem() <= 8)
                    {
                        this.checkMsg.Text += "Command Station";
                        if (mainScen.getProblem() == 8)
                        {
                            this.checkMsg.Text += " (Circuit Card Assy) ";
                        }
                    }
                    else
                    {
                        this.checkMsg.Text += "Launching System";
                        if (mainScen.getProblem() <= 12)
                        {
                            this.checkMsg.Text += " (Power Supply) ";
                        }
                    }

                    this.checkMsg.Text   += "\r\n Go Back to configure your System or get extra information \r\n from system adjustments";
                    this.checkMsg.Visible = true;
                }
            }
        }
        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();
            }
        }
        private void adjTimer_Tick(object sender, EventArgs e)
        {
            // if (mainScen.problemSolved())
            {
                r1 = rand1.Next(180, 190);
                r2 = rand1.Next(180, 190);
                r3 = rand1.Next(180, 190);
                r4 = rand1.Next(180, 190);
                r5 = rand1.Next(180, 190);
                r6 = rand1.Next(180, 190);

                adj1.Size     = new Size(adj1.Size.Width, r1);
                adj1.Location = new Point(adj1.Location.X, horizontalAxe.Location.Y - r1);

                adj2.Size     = new Size(adj2.Size.Width, r2);
                adj2.Location = new Point(adj2.Location.X, horizontalAxe.Location.Y - r2);

                adj3.Size     = new Size(adj3.Size.Width, r3);
                adj3.Location = new Point(adj3.Location.X, horizontalAxe.Location.Y - r3);

                adj4.Size     = new Size(adj4.Size.Width, r4);
                adj4.Location = new Point(adj4.Location.X, horizontalAxe.Location.Y - r4);

                adj5.Size     = new Size(adj5.Size.Width, r5);
                adj5.Location = new Point(adj5.Location.X, horizontalAxe.Location.Y - r5);

                adj6.Size     = new Size(adj6.Size.Width, r6);
                adj6.Location = new Point(adj6.Location.X, horizontalAxe.Location.Y - r6);
            }
            if (!mainScen.problemSolved())
            {
                // radar problem
                if (mainScen.getProblem() == 0)
                {
                    setProblemAdj(adj2);
                    if (!mainScen.problemSolved() && c == 2)
                    {
                        adjustThis(adj2);
                    }
                }
                else if (mainScen.getProblem() == 1)
                {
                    setProblemAdj(adj3);
                    if (!mainScen.problemSolved() && c == 3)
                    {
                        adjustThis(adj3);
                    }
                }
                else if (mainScen.getProblem() == 2)
                {
                    setProblemAdj(adj4);
                    if (!mainScen.problemSolved() && c == 4)
                    {
                        adjustThis(adj4);
                    }
                }

                else if (mainScen.getProblem() <= 6)
                {
                    // radar equipment problem
                }
                // cs problem
                else if (mainScen.getProblem() == 7)
                {
                    setProblemAdj(adj1);
                    if (!mainScen.problemSolved() && c == 1)
                    {
                        adjustThis(adj1);
                    }
                }
                else if (mainScen.getProblem() == 8)
                {
                    // cs equipment problem
                }
                // ls problem
                else if (mainScen.getProblem() == 9)
                {
                    setProblemAdj(adj5);
                    if (!mainScen.problemSolved() && c == 2)
                    {
                        adjustThis(adj5);
                    }
                }
                else if (mainScen.getProblem() == 10)
                {
                    setProblemAdj(adj6);
                    if (!mainScen.problemSolved() && c == 3)
                    {
                        adjustThis(adj6);
                    }
                }

                else
                {
                    // ls equipment problem
                }
            }
        }