Пример #1
0
 /// <summary>
 /// Calls the appropriate methods to unscramble a file
 /// </summary>
 /// <param name="sender">The object that raised the event (unused)</param>
 /// <param name="e">The arguments needed to execute the event (unused)</param>
 private void button_decrypt_Click(object sender, EventArgs e)
 {
     label_error.Text = "";
     if (!validateOverwrite(out_file_textBox.Text))
     {
         return;
     }
     try
     {
         Scrambler.unscramble(in_file_textbox.Text, out_file_textBox.Text, textBox_key.Text);
         label_error.Text = "File unscrambled successfully.";
     }
     catch (Exception ex)
     {
         label_error.Text = "Error unscrambling file: " + ex.Message;
     }
 }