Beispiel #1
0
 private void encSetBtn_Click(object sender, EventArgs e)
 {
     //shows the encryption form
     encryptForm encForm = new encryptForm();
     if (encForm.ShowDialog() == DialogResult.OK)
     {
         useSymmetric = encForm.rtnUseSymmetric;
         useAsymmetric = encForm.rtnUseAsymmetric;
         public_key = encForm.public_key;
         SymmetricKey = encForm.SymmetricKey;
     }
 }
Beispiel #2
0
        private void encSetBtn_Click(object sender, EventArgs e)
        {
            //shows the encryption form
            encryptForm encForm = new encryptForm();

            if (encForm.ShowDialog() == DialogResult.OK)
            {
                useSymmetric  = encForm.rtnUseSymmetric;
                useAsymmetric = encForm.rtnUseAsymmetric;
                public_key    = encForm.public_key;
                SymmetricKey  = encForm.SymmetricKey;
            }
        }