예제 #1
0
 private void btnDES_Click(object sender, EventArgs e)
 {
     if (!DESCipher.Visible)
     {
         DESCipher = new frmDES();
         DESCipher.Show();
     }
     else
     {
         DESCipher.BringToFront();
     }
 }
예제 #2
0
 private void btnDES_Click(object sender, EventArgs e)
 {
     if (!DES.Visible)
     {
         DES = new frmDES();
         DES.Show();
         if (txtMessage.Text != "" && txtKey.Text != "")
         {
             DES.setMessageAndKey(txtMessage.Text, txtKey.Text, txtIV.Text);
         }
         this.Close();
     }
 }