private void btnAESInfo_Click(object sender, EventArgs e) { if (!AESInfo.Visible) { AESInfo = new frmAESInfo(); AESInfo.Show(); if (txtMessage.Text != "" && txtKey.Text != "") { AESInfo.setMessageAndKey(txtMessage.Text, txtKey.Text, txtIV.Text); } this.Close(); } }
private void frmAES_Load(object sender, EventArgs e) { rdoBtnEncrypt.Checked = true; AESInfo = new frmAESInfo(); }
private void frmAESInfo_FormClosing(object sender, FormClosingEventArgs e) { frmAESInfo AESInfo = new frmAESInfo(); AESInfo.Close(); }