private static void LoadRepo() { _gha = new GitHubAdapter(_user, _password); _gha.RepoUser = "******"; var repos = _gha.GetRepos("Droid-"); _comboboxRepo.Items.Add("Autre"); foreach (var item in repos.OrderBy(r => r.Name).ToList()) { _comboboxRepo.Items.Add(item.Name.Replace("Droid-", string.Empty)); } if (_comboboxRepo.Items.Count <= 1 && _repositories != null) { _repositories.Sort(); foreach (var item in _repositories) { _comboboxRepo.Items.Add(item.Replace("Droid-", string.Empty)); } } _comboboxRepo.SelectedIndex = 0; _comboBoxType.SelectedIndex = 0; }
private void Init() { _gitHubAdapt = new GitHubAdapter(); _gitHubAdapt.StatusChanged += _gitHubAdapt_StatusChanged; _gitHubLogger.GitHubAdapter = _gitHubAdapt; }