private void button_Start_Click(object sender, EventArgs e) { string lastError = string.Empty; if (!EncryptionHandler.ConvertFileToFilterDriverAwareEncryptFile(textBox_FileName.Text, textBox_PassPhrase.Text, out lastError)) { MessageBoxHelper.PrepToCenterMessageBoxOnForm(this); MessageBox.Show("Process share encrypted file failed with error:" + lastError, "Process share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } else { MessageBoxHelper.PrepToCenterMessageBoxOnForm(this); MessageBox.Show("Process share encrypted file succeeded.", "Process share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Information); } }