/// <summary> /// Calls the appropriate methods to scramble 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_encrypt_Click(object sender, EventArgs e) { label_error.Text = ""; if (!validateOverwrite(out_file_textBox.Text)) { return; } try { Scrambler.scramble(in_file_textbox.Text, out_file_textBox.Text, textBox_key.Text); label_error.Text = "File scrambled successfully."; } catch (Exception ex) { label_error.Text = "Error scrambling file: " + ex.Message; } }