Esempio n. 1
0
 private void EncryptBtn_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(InputTextBox.Text))
     {
         var encryptor  = new SimpleEncryption();
         var inputText  = InputTextBox.Text;
         var outputText = encryptor.EncryptText(inputText);
         OutputTextBox.Text = outputText;
     }
     else
     {
         MessageBox.Show("The input field is empty");
     }
 }