private void _cmdBrowse_Click(object sender, EventArgs e) { _openFileDialog.Filter = "Git Executable|git.exe"; _openFileDialog.FileName = "git.exe"; var path = GitProcess.DetectGitExePath(); if (!string.IsNullOrEmpty(path)) { path = Path.GetDirectoryName(path); _openFileDialog.InitialDirectory = path; } if (_openFileDialog.ShowDialog(this) == DialogResult.OK) { _txtmSysGitPath.Text = _openFileDialog.FileName; } }
private void _cmdAutoDetect_Click(object sender, EventArgs e) { _txtmSysGitPath.Text = GitProcess.DetectGitExePath(); }