Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void ReBuildRepos(TabReposControl repoControl, SelectRepo onSelectRepoEvent) => CheckForGitRepo(repoControl, onSelectRepoEvent);