private void btnRSA_Click(object sender, EventArgs e) { if (!RSACipher.Visible) { RSACipher = new frmRSA(); RSACipher.Show(); } else { RSACipher.BringToFront(); } }
private void btnRSA_Click(object sender, EventArgs e) { if (!RSA.Visible) { RSA = new frmRSA(); RSA.Show(); if (txtMessage.Text != "" && txtKey.Text != "") { RSA.setMessageAndKey(txtMessage.Text, txtKey.Text); } this.Close(); } }