GitUI.FormSettings.CheckSSHSettings C# (CSharp) Метод

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

private CheckSSHSettings ( ) : bool
Результат bool
        private bool CheckSSHSettings()
        {
            SshConfig.Visible = true;
            if (GitCommands.GitCommands.Plink())
            {
                if (!File.Exists(GitCommands.Settings.Plink) || !File.Exists(GitCommands.Settings.Puttygen) || !File.Exists(GitCommands.Settings.Pageant))
                {
                    SshConfig.BackColor = Color.LightSalmon;
                    SshConfig.Text = "PuTTY is configured as SSH client but cannot find plink.exe, puttygen.exe or pageant.exe.";
                    return false;
                }
                SshConfig.BackColor = Color.LightGreen;
                SshConfig.Text = "SSH client PuTTY is configured properly";
                return true;
            }
            SshConfig.BackColor = Color.LightGreen;
            if (string.IsNullOrEmpty(GitCommands.GitCommands.GetSsh()))
                SshConfig.Text = "Default SSH client, OpenSSH, will be used. (commandline window will appear on pull, push and clone operations)";
            else
                SshConfig.Text = "Unknown SSH client configured: " + GitCommands.GitCommands.GetSsh();
            return true;
        }
FormSettings