private void btnEncrypt_Click(object sender, EventArgs e) { if (!tbSource.Text.IsNullOrEmpty()) { tbDecrypt.Text = Secret.EncryptDES(tbSource.Text); } else { MessageBox.Show("计算加密字符串时,原字符串不能为空"); } }