private void BrowseDiffTool_Click(object sender, EventArgs e) { string diffTool = _NO_TRANSLATE_GlobalDiffTool.Text.ToLowerInvariant(); string exeFile = MergeToolsHelper.GetDiffToolExeFile(diffTool); var filter = exeFile != null ? string.Format("{0} ({1})|{1}", _NO_TRANSLATE_GlobalDiffTool.Text, exeFile) : string.Format("{0} (*.exe)|*.exe", _NO_TRANSLATE_GlobalDiffTool.Text); DifftoolPath.Text = CommonLogic.SelectFile(".", filter, DifftoolPath.Text); }
private void BrowseDiffTool_Click(object sender, EventArgs e) { string diffTool = GlobalDiffTool.Text.ToLowerInvariant(); string exeFile = MergeToolsHelper.GetDiffToolExeFile(diffTool); if (exeFile != null) { DifftoolPath.Text = CommonLogic.SelectFile(".", string.Format("{0} ({1})|{1}", GlobalDiffTool.Text, exeFile), DifftoolPath.Text); } else { DifftoolPath.Text = CommonLogic.SelectFile(".", string.Format("{0} (*.exe)|*.exe", GlobalDiffTool.Text), DifftoolPath.Text); } }