Пример #1
0
 private void btnRSA_Click(object sender, EventArgs e)
 {
     if (!RSACipher.Visible)
     {
         RSACipher = new frmRSA();
         RSACipher.Show();
     }
     else
     {
         RSACipher.BringToFront();
     }
 }
Пример #2
0
 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();
     }
 }