private void ButtonEncrypt_Click(object sender, EventArgs e) { if (textBoxEncryptOriginal.TextLength == 0) { return; } chiper.SetKey(textBoxKey.Text); var encrypt = chiper.Encrypt(textBoxEncryptOriginal.Text); textBoxEncrypt.Text = encrypt; }