private void ButtonDecrypt_Click(object sender, EventArgs e) { if (textBoxDecryptOriginal.TextLength == 0) { return; } chiper.SetKey(textBoxKey.Text); var decrypt = chiper.Decrypt(textBoxDecryptOriginal.Text); textBoxDecrypt.Text = decrypt; }