コード例 #1
0
        private void refresh_Click(object sender, EventArgs e)
        {
            EnigmaApp newOne = new EnigmaApp();

            newOne.Show();
            Close();
        }
コード例 #2
0
 private void solutions_Click(object sender, EventArgs e)
 {
     if (solutions.SelectedIndex != -1)
     {
         DialogResult dialogResult = MessageBox.Show("Do you want to load solution in Enigma?",
                                                     "Enigma App", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             EnigmaApp enigmaApp = new EnigmaApp(bombe.wheels, bombe.reflector,
                                                 bombe.solutions[solutions.SelectedIndex].plugboardSets, bombe.solutions[solutions.SelectedIndex].rotorSets);
             enigmaApp.Show();
         }
     }
 }
コード例 #3
0
 private void openEnigma_Click(object sender, EventArgs e)
 {
     enigma = new EnigmaApp();
     enigma.Show();
 }