private void attachConfigButton_Click(object sender, EventArgs e)
{
DialogResult result = configFileOpenDialog.ShowDialog(); // Show the dialog.
if (result == DialogResult.OK) // Test result.
{
configFileTextBox.Text = configFileOpenDialog.FileName;
}
ValidateConfigFile();
}