Beispiel #1
0
        private void myChannelView_Load(object sender, EventArgs e)
        {
            //place holder
            //MessageBox.Show(sender.ToString());
            thisUser    = bl.getUser(1);
            thisChannel = bl.getChannel(1);

            List <video> videoData = new List <video>();

            videoData = thisChannel.getVidoes();
            listBoxVidoes.DisplayMember = "nameText";
            listBoxVidoes.DataSource    = videoData;
            LabelChannelName.Text       = thisChannel.getName();
        }
Beispiel #2
0
        //Video Selector Controls////////////////////////////////////
        private void populateVideoItems()
        {
            List <video> videos = new List <video>();

            videos = thisChannel.getVidoes();

            //loop through each item
            flowLayoutPanel1.Controls.Clear();
            foreach (video v in videos)
            {
                ListItemVideo listVideo = new ListItemVideo();
                listVideo.ThisVideo   = v;
                listVideo.videoName   = v.getName();
                listVideo.creatorName = v.getcreatorName();
                listVideo.description = v.getDescription();
                listVideo.Click      += videoClick;
                flowLayoutPanel1.Controls.Add(listVideo);
            }
        }