Ejemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(
         new Window(
             new ChiffreVigenere(
                 alphabet: AlphabetLoader.Load(Properties.Resources.Alphabet)
                 )));
 }
Ejemplo n.º 2
0
 private void LoadTextToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var fileDialog = new OpenFileDialog())
     {
         var result = fileDialog.ShowDialog();
         if (result == DialogResult.OK)
         {
             TextBox.Text = AlphabetLoader.Load(fileDialog.FileName);
         }
     }
 }