예제 #1
0
 private void caesarbtn_Click(object sender, EventArgs e)
 {
     using (var form = new caesarkeydialog())
     {
         var result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             caesarkey = form.ReturnValue1;
             CzarDecode decode = new CzarDecode(ciphertext, caesarkey);
             outputtext.Text = decode.get_PlainText();
             File.WriteAllText(filepath, outputtext.Text);
         }
     }
 }
예제 #2
0
        private void caesarbtn_Click(object sender, EventArgs e)
        {
            ciphertext = inputtext.Text;
            using (var form1 = new caesarkeydialog())
            {
                var result = form1.ShowDialog();
                if (result == DialogResult.OK)
                {
                    caesarkey = form1.ReturnValue1;
                }
            }
            CzarDecode decode = new CzarDecode(ciphertext, caesarkey);

            outputtext.Text = decode.get_PlainText();
        }