private void ClientBtn_Click(object sender, EventArgs e)
{
OpenFileDialog Dialog = new OpenFileDialog();
Dialog.FileName = "bf2.exe";
Dialog.Filter = "BF2 Executable|bf2.exe";
// Set the initial search directory if we found an install path via registry
if (!String.IsNullOrWhiteSpace(ClientInstallPath))
Dialog.InitialDirectory = ClientInstallPath;
if (Dialog.ShowDialog() == DialogResult.OK)
ClientPath.Text = Path.GetDirectoryName(Dialog.FileName);
}