Exemplo n.º 1
0
        private static IEnumerable <SccProject> GetSelection(ISelectionContext iSelectionContext)
        {
            bool foundOne = false;

            foreach (SccProject pr in iSelectionContext.GetSelectedProjects(true))
            {
                yield return(pr);

                foundOne = true;
            }

            if (foundOne)
            {
                yield break;
            }

            foreach (SccProject pr in iSelectionContext.GetOwnerProjects())
            {
                yield return(pr);
            }
        }
Exemplo n.º 2
0
        private static IEnumerable<SvnProject> GetSelection(ISelectionContext iSelectionContext)
        {
            bool foundOne = false;
            foreach (SvnProject pr in iSelectionContext.GetSelectedProjects(true))
            {
                yield return pr;
                foundOne = true;
            }

            if (foundOne)
                yield break;

            foreach (SvnProject pr in iSelectionContext.GetOwnerProjects())
            {
                yield return pr;
            }
        }