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(); } }
private void frmDESInfo_FormClosing(object sender, FormClosingEventArgs e) { frmDESInfo DESInfo = new frmDESInfo(); DESInfo.Close(); }
private void frmDES_Load(object sender, EventArgs e) { rdoBtnEncrypt.Checked = true; DESInfo = new frmDESInfo(); }