Пример #1
0
        private void enigmaKeyboard_OnKeyBoardKeyClicked(object sender, KeyEventArgs e)
        {
            char cEvent = Convert.ToChar(e.KeyCode);

            //MessageBox.Show(e.KeyCode.ToString());

            //(SearchControl("tbKeyboard") as TextBox).Text = Convert.ToChar(enigma.Rotors[0].myRotation + 'A').ToString();
            enigmaLampboard1.OutputChar(enigma.Gebruiken(cEvent));
            enigmaKeyboard.InputChar(cEvent);
        }