Esempio n. 1
0
        public void displayListPodcast()
        {
            // Recupere l'ensemble des podcasts en base
            List<Podcast> aPodcasts = new List<Podcast>();
            PodcastsGroup oPodcastsGroup = new PodcastsGroup();
            aPodcasts = oPodcastsGroup.getAllPodcasts();

            int iHeight = 15;
            int iWidth = 15;
            foreach (Podcast oCurrentPodcast in aPodcasts)
            {
                displayPodcast(oCurrentPodcast, iWidth, iHeight);
                iWidth += 0;
                iHeight += 80;
            }

            Button addPodcastButton = new Button();
            addPodcastButton.Image = croustiCast.Properties.Resources.addPodcast;
            addPodcastButton.Width = 40;
            addPodcastButton.Height = 40;
            addPodcastButton.TabIndex = 1;
            addPodcastButton.TabStop = true;
            addPodcastButton.Click += new EventHandler(this.addBtn_Click);
            addPodcastButton.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
            //addPodcastButton.Image = new Bitmap(assembly.GetManifestResourceStream("addPodcast"));

            podcastListGroupBox.Controls.Add(addPodcastButton);
        }
Esempio n. 2
0
        public void displayListPodcast()
        {
            // Recupere l'ensemble des podcasts en base
            List <Podcast> aPodcasts      = new List <Podcast>();
            PodcastsGroup  oPodcastsGroup = new PodcastsGroup();

            aPodcasts = oPodcastsGroup.getAllPodcasts();

            int iHeight = 15;
            int iWidth  = 15;

            foreach (Podcast oCurrentPodcast in aPodcasts)
            {
                displayPodcast(oCurrentPodcast, iWidth, iHeight);
                iWidth  += 0;
                iHeight += 80;
            }

            Button addPodcastButton = new Button();

            addPodcastButton.Image    = croustiCast.Properties.Resources.addPodcast;
            addPodcastButton.Width    = 40;
            addPodcastButton.Height   = 40;
            addPodcastButton.TabIndex = 1;
            addPodcastButton.TabStop  = true;
            addPodcastButton.Click   += new EventHandler(this.addBtn_Click);
            addPodcastButton.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
            //addPodcastButton.Image = new Bitmap(assembly.GetManifestResourceStream("addPodcast"));

            podcastListGroupBox.Controls.Add(addPodcastButton);
        }