private void CheckForGitRepo(TabReposControl repoControl, SelectRepo onSelectRepoEvent) { if (Directory.Exists(repoControl.RepoConfiguration.GitLookerPath)) { foreach (var repo in gitFileRepo.Get(repoControl.RepoConfiguration.GitLookerPath)) { BuildRepo(onSelectRepoEvent, repoControl, repo); } } }
public void BuildRepo(SelectRepo onSelectRepoEvent, TabReposControl repoControls, string repoDdir, string newRepo = default) { var repo = serviceProvider.GetService <RepoControl>(); repo.RepoPath = repoDdir; repo.NewRepo = newRepo; repo.MainBranch = repoControls.RepoConfiguration.MainBranch; repo.EndControl = repoControls.RepoEndControl; repo.OnSelectRepo += onSelectRepoEvent; repo.Dock = DockStyle.Top; repoControls.RepoAdd(repo); Application.DoEvents(); }
public void ReBuildRepos(TabReposControl repoControl, SelectRepo onSelectRepoEvent) => CheckForGitRepo(repoControl, onSelectRepoEvent);