示例#1
0
        public void BuildTab(TabControl reposCatalogs, SelectRepo onSelectRepoEvent, string repoPath)
        {
            if (!Directory.Exists(repoPath))
            {
                MessageBox.Show($"Path {repoPath} is not valid.", "Invalid repo path", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            var config = new RepoConfig {
                GitLookerPath = repoPath
            };

            appConfiguration.Add(config);
            BuildTab(reposCatalogs, onSelectRepoEvent, config);
        }