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; } }