Пример #1
0
        private void Initialize()
        {
            dto = new DTO();


            ks = dto.mkSet(dto.KartenAuslesen());

            PictureBox[] bildArray = new PictureBox[ks.Count];

            var ResourceManager =
                new System.Resources.ResourceManager(
                    "YourAssembly.Properties.Resources",
                    typeof(Resources).Assembly);
            int i = 0;

            while (i < ks.Count)
            {
                object obj = ResourceManager.GetObject(ks.ElementAt(i).bild);

                bildArray[i].Image = ((System.Drawing.Bitmap)(obj));



                i++;
            }
        }