示例#1
0
 private void btnDESInfo_Click(object sender, EventArgs e)
 {
     if (!DESInfo.Visible)
     {
         DESInfo = new frmDESInfo();
         DESInfo.Show();
         if (txtMessage.Text != "" && txtKey.Text != "")
         {
             DESInfo.setMessageAndKey(txtMessage.Text, txtKey.Text, txtIV.Text);
         }
         this.Close();
     }
 }
示例#2
0
        private void frmDESInfo_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmDESInfo DESInfo = new frmDESInfo();

            DESInfo.Close();
        }
示例#3
0
 private void frmDES_Load(object sender, EventArgs e)
 {
     rdoBtnEncrypt.Checked = true;
     DESInfo = new frmDESInfo();
 }