コード例 #1
0
 private bool CheckGitExe()
 {
     return(RenderSettingSetUnset(() => !File.Exists(AppSettings.GitBinDir + "sh.exe") && !File.Exists(AppSettings.GitBinDir + "sh") &&
                                  !CheckSettingsLogic.CheckIfFileIsInPath("sh.exe") && !CheckSettingsLogic.CheckIfFileIsInPath("sh"),
                                  GitBinFound, GitBinFound_Fix,
                                  _linuxToolsSshNotFound.Text, _linuxToolsSshFound.Text));
 }
コード例 #2
0
 private bool CheckGitExe()
 {
     GitBinFound.Visible = true;
     if (!File.Exists(AppSettings.GitBinDir + "sh.exe") && !File.Exists(AppSettings.GitBinDir + "sh") &&
         !CheckSettingsLogic.CheckIfFileIsInPath("sh.exe") && !CheckSettingsLogic.CheckIfFileIsInPath("sh"))
     {
         GitBinFound.BackColor   = Color.LightSalmon;
         GitBinFound.Text        = _linuxToolsSshNotFound.Text;
         GitBinFound_Fix.Visible = true;
         return(false);
     }
     GitBinFound_Fix.Visible = false;
     GitBinFound.BackColor   = Color.LightGreen;
     GitBinFound.Text        = _linuxToolsSshFound.Text;
     return(true);
 }