예제 #1
0
        protected void CrearMPos()
        {
            int ind1;

            //MPosibles nexo = new MPosibles(nivel);

            mpos = new MPosibles[tope];
            for (ind1 = 0; ind1 < tope; ++ind1)
            {
                mpos[ind1] = new MPosibles(nivel);
            }
            for (ind1 = 0; ind1 < tope; ++ind1)
            {
                mpos[ind1].PCadena(ind1);
                mpos[ind1].pos = FMaster.Validar(mpos[ind1].Cadena, nivel);
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int     indice;
            Boolean valida;
            string  entrada;

            cadena = entrada = "";
            for (indice = 0; indice < nivel; ++indice)
            {
                entrada += numbot[indice].Value.ToString();
            }
            valida = FMaster.Validar(entrada, nivel);
            if (!valida)
            {
                label2.Text = entrada + " Cadena Incorrecta.";
            }
            else
            {
                cadena = entrada;
                Hide();
            }
        }