private void frmCryptographer_Load(object sender, EventArgs e) { ceasarCipher = new frmCaesar(); vigenereCipher = new frmVigenere(); playfairCipher = new frmPlayfair(); DESCipher = new frmDES(); AESCipher = new frmAES(); RSACipher = new frmRSA(); RSASigature = new frmRSASignature(); diffieHellman = new frmDiffieHellman(); }
private void btnDES_Click(object sender, EventArgs e) { if (!DESCipher.Visible) { DESCipher = new frmDES(); DESCipher.Show(); } else { DESCipher.BringToFront(); } }
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(); } }
private void frmDESInfo_Load(object sender, EventArgs e) { rdoBtnEncrypt.Checked = true; DES = new frmDES(); }
private void frmDES_FormClosing(object sender, FormClosingEventArgs e) { frmDES DESCipher = new frmDES(); DESCipher.Close(); }