Esempio n. 1
0
        public void StartRotors(int Rotor1Offset, int Rotor2Offset, int Rotor3Offset, int Rotor4Offset)
        {
            RotorMainClass RotMain = new RotorMainClass();

            string[] Letters = new string[75];
            Dictionary.Dictionaryclass Dict = new Dictionaryclass();
            Dict.let = null;
            Dict.let.CopyTo(Letters, 0);

            for (int count = 0; count < 75; count++) // loop to copy dictionary to static rotor
            {
                char character;
                character = Convert.ToChar(Letters[count]);
                Static    = StatRot.BuildSR(Static, character);
            }

            r1 = RotMain.RotorMain(Static, Rotor1Offset, r1);
            r2 = RotMain.RotorMain(r1, Rotor2Offset, r2);
            r3 = RotMain.RotorMain(r2, Rotor3Offset, r3);
            r4 = RotMain.RotorMain(r3, Rotor4Offset, r4);
        }