Beispiel #1
0
        public override ObservableList <SolutionInfo> GetProjectsList()
        {
            ObservableList <SolutionInfo> SourceControlSolutions = new ObservableList <SolutionInfo>();

            try
            {
                string repositoryName = SourceControlURL.Substring(SourceControlURL.LastIndexOf("/") + 1);
                if (repositoryName == string.Empty)
                {
                    string SourceControlURLExcludeSlash = SourceControlURL.Substring(0, SourceControlURL.LastIndexOf("/"));
                    repositoryName = SourceControlURLExcludeSlash.Substring(SourceControlURLExcludeSlash.LastIndexOf("/") + 1);
                }
                AddSolution(SourceControlSolutions, SourceControlLocalFolder + @"\" + repositoryName, repositoryName);
            }
            catch (Exception ex)
            { Console.WriteLine(ex.StackTrace); }
            return(SourceControlSolutions);
        }
Beispiel #2
0
        public override ObservableList <SolutionInfo> GetProjectsList()
        {
            ObservableList <SolutionInfo> SourceControlSolutions = new ObservableList <SolutionInfo>();

            try
            {
                string repositoryName = SourceControlURL.Substring(SourceControlURL.LastIndexOf("/") + 1);
                if (repositoryName == string.Empty)
                {
                    string SourceControlURLExcludeSlash = SourceControlURL.Substring(0, SourceControlURL.LastIndexOf("/"));
                    repositoryName = SourceControlURLExcludeSlash.Substring(SourceControlURLExcludeSlash.LastIndexOf("/") + 1);
                }
                //check which path to show to download
                string localPath = SourceControlLocalFolder;
                if (IsImportSolution)
                {
                    localPath = SourceControlLocalFolderForGlobalSolution;
                }
                AddSolution(SourceControlSolutions, localPath + @"\" + repositoryName, repositoryName);
            }
            catch (Exception ex)
            { Console.WriteLine(ex.StackTrace); }
            return(SourceControlSolutions);
        }