public override void Update(GameTime tempo)
        {
            if (p1.Length != q1[Page].Length + barra1)
            {
                for (int i = 0; i < q1[Page].Length; i++)
                {
                    if (i % 10 * linhas == 0)
                    {
                        if (q1[Page][i] == ' ')
                        {
                            p1 += "\n";
                            barra1++;
                            linhas = 0;
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q1[Page].Length - 1)
                    {
                        linhas = 0;
                    }

                    p1 += q1[Page][i];
                }
            }
            if (p2.Length != q2[Page].Length + barra2)
            {
                for (int i = 0; i < q2[Page].Length; i++)
                {
                    if (i % 10 * linhas == 0)
                    {
                        if (q2[Page][i] == ' ')
                        {
                            p2 += "\n";
                            barra2++;
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q2[Page].Length - 1)
                    {
                        linhas = 0;
                    }
                    p2 += q2[Page][i];
                }
            }
            if (p3.Length != q3[Page].Length + barra3)
            {
                for (int i = 0; i < q3[Page].Length; i++)
                {
                    if (i % 10 * linhas == 0)
                    {
                        if (q3[Page][i] == ' ')
                        {
                            p3 += "\n";
                            barra3++;
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q3[Page].Length - 1)
                    {
                        linhas = 0;
                    }
                    p3 += q3[Page][i];
                }
            }
            if (p4.Length != q4[Page].Length + barra4)
            {
                for (int i = 0; i < q4[Page].Length; i++)
                {
                    if (i % 10 * linhas == 0)
                    {
                        if (q4[Page][i] == ' ')
                        {
                            p4 += "\n";
                            barra4++;
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q4[Page].Length - 1)
                    {
                        linhas = 0;
                    }

                    p4 += q4[Page][i];
                }
            }
            KeyboardState teclado = Keyboard.GetState();

            if (teclado.IsKeyDown(Keys.Back))
            {
                questions.Cad(false);
                ExitState();
            }
            if ((teclado.IsKeyDown(Keys.Right)) && (lastKey != Keys.Right))
            {
                Page++;
                p1     = "";
                p2     = "";
                p3     = "";
                p4     = "";
                barra1 = 0;
                barra2 = 0;
                barra3 = 0;
                barra4 = 0;

                if (Page >= 2)
                {
                    Page = 2;
                }
            }
            if ((teclado.IsKeyDown(Keys.Left)) && (lastKey != Keys.Left))
            {
                Page--;
                p1     = "";
                p2     = "";
                p3     = "";
                p4     = "";
                barra1 = 0;
                barra2 = 0;
                barra3 = 0;
                barra4 = 0;
                if (Page <= 0)
                {
                    Page = 0;
                }
            }
            Keys[] ks = teclado.GetPressedKeys();

            if (ks.Length == 0)
            {
                lastKey = Keys.A;
            }
            else
            {
                lastKey = ks[0];
            }
            if (Page == 0)
            {
                if (questions.EX1)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (questions.EX2)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
                if (questions.EX3)
                {
                    cor3 = Color.Black;
                }
                else
                {
                    cor3 = Color.Transparent;
                }
                if (questions.EX4)
                {
                    cor4 = Color.Black;
                }
                else
                {
                    cor4 = Color.Transparent;
                }
            }
            if (Page == 1)
            {
                if (questions.EX5)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (questions.EX6)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
                if (questions.EX7)
                {
                    cor3 = Color.Black;
                }
                else
                {
                    cor3 = Color.Transparent;
                }
                if (questions.EX8)
                {
                    cor4 = Color.Black;
                }
                else
                {
                    cor4 = Color.Transparent;
                }
            }
            if (Page == 2)
            {
                if (questions.EX9)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (questions.EX10)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
            }
            base.Update(tempo);
        }
        public override void Update(GameTime tempo)
        {
            #region Quebra de Linhas
            #region Qubrar linha Perguntas
            if (p1.Length != q1[Page].Length + barra1)
            {
                for (int i = 0; i < q1[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (q1[Page][i - 1] == ' ')
                        {
                            p1 += "\n";
                            barra1++;
                            linhas = 30 * (barra1 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q1[Page].Length - 1)
                    {
                        linhas = 30;
                    }

                    p1 += q1[Page][i];
                }
            }
            if (p2.Length != q2[Page].Length + barra2)
            {
                for (int i = 0; i < q2[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (q2[Page][i - 1] == ' ')
                        {
                            p2 += "\n";
                            barra2++;
                            linhas = 30 * (barra2 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q2[Page].Length - 1)
                    {
                        linhas = 30;
                    }
                    p2 += q2[Page][i];
                }
            }
            if (p3.Length != q3[Page].Length + barra3)
            {
                for (int i = 0; i < q3[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (q3[Page][i - 1] == ' ')
                        {
                            p3 += "\n";
                            barra3++;
                            linhas = 30 * (barra3 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q3[Page].Length - 1)
                    {
                        linhas = 30;
                    }
                    p3 += q3[Page][i];
                }
            }
            if (p4.Length != q4[Page].Length + barra4)
            {
                for (int i = 0; i < q4[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (q4[Page][i - 1] == ' ')
                        {
                            p4 += "\n";
                            barra4++;
                            linhas = 30 * (barra4 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == q4[Page].Length - 1)
                    {
                        linhas = 30;
                    }

                    p4 += q4[Page][i];
                }
            }
            #endregion
            #region Quebrar de linhas Explicações
            if (exp1.Length != explicaP1[Page].Length + qbr1)
            {
                for (int i = 0; i < explicaP1[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (explicaP1[Page][i - 1] == ' ')
                        {
                            exp1 += "\n";
                            qbr1++;
                            linhas = 30 * (qbr1 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == explicaP1[Page].Length - 1)
                    {
                        linhas = 30;
                    }

                    exp1 += explicaP1[Page][i];
                }
            }
            if (exp2.Length != explicaP2[Page].Length + qbr2)
            {
                for (int i = 0; i < explicaP2[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (explicaP2[Page][i - 1] == ' ')
                        {
                            exp2 += "\n";
                            qbr2++;
                            linhas = 30 * (qbr2 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == explicaP2[Page].Length - 1)
                    {
                        linhas = 30;
                    }
                    exp2 += explicaP2[Page][i];
                }
            }
            if (exp3.Length != explicaP3[Page].Length + qbr3)
            {
                for (int i = 0; i < explicaP3[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (explicaP3[Page][i - 1] == ' ')
                        {
                            exp3 += "\n";
                            qbr3++;
                            linhas = 30 * (qbr3 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == explicaP3[Page].Length - 1)
                    {
                        linhas = 30;
                    }
                    exp3 += explicaP3[Page][i];
                }
            }
            if (exp4.Length != explicaP4[Page].Length + qbr4)
            {
                for (int i = 0; i < explicaP4[Page].Length; i++)
                {
                    if (i % linhas == 0 && i != 0)
                    {
                        if (explicaP4[Page][i - 1] == ' ')
                        {
                            exp4 += "\n";
                            qbr4++;
                            linhas = 30 * (qbr4 + 1);
                        }
                        else
                        {
                            linhas++;
                        }
                    }
                    if (i == explicaP4[Page].Length - 1)
                    {
                        linhas = 30;
                    }

                    exp4 += explicaP4[Page][i];
                }
            }
            #endregion
            #endregion
            KeyboardState teclado = Keyboard.GetState();
            MouseState    mouse   = Mouse.GetState();
            #region Comandos
            if (ColisaoMouseOver(mouse, vBtAvancar))
            {
                indiceDoAvancar = 1;
            }
            else
            {
                indiceDoAvancar = 0;
            }
            if (ColisaoMouseOver(mouse, vVoltar))
            {
                VoltarIndice = 1;
            }
            else
            {
                VoltarIndice = 0;
            }
            if (ColisaoMouseOver(mouse, vBTx))
            {
                indiceX = 1;
            }
            else
            {
                indiceX = 0;
            }
            if (mouse.LeftButton == ButtonState.Pressed && !clique)
            {
                clique = true;
                if (ColisaoMouseOver(mouse, vBTx))
                {
                    questions.Cad(false);
                    ExitState();
                }
                if (ColisaoMouseOver(mouse, vBtAvancar))
                {
                    Page++;
                    p1     = "";
                    p2     = "";
                    p3     = "";
                    p4     = "";
                    exp1   = "";
                    exp2   = "";
                    exp3   = "";
                    exp4   = "";
                    barra1 = 0;
                    barra2 = 0;
                    barra3 = 0;
                    barra4 = 0;
                    qbr1   = 0;
                    qbr2   = 0;
                    qbr3   = 0;
                    qbr4   = 0;

                    if (Page >= 2)
                    {
                        Page = 2;
                    }
                }
                if (ColisaoMouseOver(mouse, vVoltar))
                {
                    if (Page > 0)
                    {
                        Page--;
                        p1     = "";
                        p2     = "";
                        p3     = "";
                        p4     = "";
                        barra1 = 0;
                        barra2 = 0;
                        barra3 = 0;
                        barra4 = 0;
                        exp1   = "";
                        exp2   = "";
                        exp3   = "";
                        exp4   = "";
                        qbr1   = 0;
                        qbr2   = 0;
                        qbr3   = 0;
                        qbr4   = 0;
                        if (Page <= 0)
                        {
                            Page = 0;
                        }
                    }
                }
            }
            if (mouse.LeftButton == ButtonState.Released)
            {
                clique = false;
            }

            #endregion
            if (!ex1)
            {
                ex1 = questions.EX1;
            }
            if (!ex2)
            {
                ex2 = questions.EX2;
            }
            if (!ex3)
            {
                ex3 = questions.EX3;
            }
            if (!ex4)
            {
                ex4 = questions.EX4;
            }
            if (!ex5)
            {
                ex5 = questions.EX5;
            }
            if (!ex6)
            {
                ex6 = questions.EX6;
            }
            if (!ex7)
            {
                ex7 = questions.EX7;
            }
            if (!ex8)
            {
                ex8 = questions.EX8;
            }
            if (!ex9)
            {
                ex9 = questions.EX9;
            }
            if (!ex10)
            {
                ex10 = questions.EX10;
            }
            if (Page == 0)
            {
                if (ex1)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (ex2)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
                if (ex3)
                {
                    cor3 = Color.Black;
                }
                else
                {
                    cor3 = Color.Transparent;
                }
                if (ex4)
                {
                    cor4 = Color.Black;
                }
                else
                {
                    cor4 = Color.Transparent;
                }
            }
            if (Page == 1)
            {
                if (ex5)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (ex6)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
                if (ex7)
                {
                    cor3 = Color.Black;
                }
                else
                {
                    cor3 = Color.Transparent;
                }
                if (ex8)
                {
                    cor4 = Color.Black;
                }
                else
                {
                    cor4 = Color.Transparent;
                }
            }
            if (Page == 2)
            {
                if (ex9)
                {
                    cor1 = Color.Black;
                }
                else
                {
                    cor1 = Color.Transparent;
                }
                if (ex10)
                {
                    cor2 = Color.Black;
                }
                else
                {
                    cor2 = Color.Transparent;
                }
            }
            base.Update(tempo);
        }