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(); } }