BF2Statistics.InstallForm.ClientBtn_Click C# (CSharp) Метод

ClientBtn_Click() приватный Метод

Event fired when the Client Path button is clicked... Opens the Dialog to select the Client executable
private ClientBtn_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        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);
        }