Beispiel #1
0
        public void LoadCultures(VSSolution s, IEnumerable<VSCulture> selectedCultures)
        {
            solution = s;

            int i = 0;
            foreach (var culture in solution.Cultures.Values)
            {
                var item = new CultureListBoxEntry(culture);
                this.Items.Add(item);

                if (selectedCultures.Contains(culture))
                    this.SetSelected(i, true);

                i++;
            }
        }
Beispiel #2
0
        public void LoadCultures(VSSolution solution, IEnumerable <VSCulture> selectedCultures)
        {
            if (solution == null)
            {
                throw new ArgumentNullException("solution");
            }

            int i = 0;

            foreach (var culture in solution.Cultures.Values)
            {
                var item = new CultureListBoxEntry(culture);
                this.Items.Add(item);

                if (selectedCultures.Contains(culture))
                {
                    this.SetSelected(i, true);
                }

                i++;
            }
        }