Esempio n. 1
0
        public void LoadProjects(VSSolution s, IEnumerable<VSProject> projects)
        {
            solution = s;

            int i = 0;
            foreach (var project in solution.Projects.Values)
            {
                var item = new ProjectListViewEntry(project);
                this.Items.Add(item);

                if (projects.Contains(project))
                    this.SetSelected(i, true);

                i++;
            }
        }
Esempio n. 2
0
        public void LoadProjects(VSSolution sol, IEnumerable <VSProject> projects)
        {
            solution = sol;

            int i = 0;

            foreach (var project in solution.Projects.Values)
            {
                var item = new ProjectListViewEntry(project);
                this.Items.Add(item);

                if (projects.Contains(project))
                {
                    this.SetSelected(i, true);
                }

                i++;
            }
        }