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

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

private CheckGlobalUserSettingsValid ( ) : bool
Результат bool
        private bool CheckGlobalUserSettingsValid()
        {
            UserNameSet.Visible = true;
            GitCommands.GitCommands gitCommands = new GitCommands.GitCommands();
            if (string.IsNullOrEmpty(gitCommands.GetGlobalSetting("user.name")) ||
                string.IsNullOrEmpty(gitCommands.GetGlobalSetting("user.email")))
            {
                UserNameSet.BackColor = Color.LightSalmon;
                UserNameSet.Text = "You need to configure a user name and an email address.";
                return false;
            }
            UserNameSet.BackColor = Color.LightGreen;
            UserNameSet.Text = "There is a user name and an email address configured.";
            return true;
        }
FormSettings