Example #1
0
 private void buttonAddNew_Click(object sender, EventArgs e)
 {
     modifyVid               = new video();
     textBoxName.Text        = modifyVid.getName();
     textBoxPath.Text        = modifyVid.getURL();
     textBoxDescription.Text = modifyVid.getDescription();
     labelVideoId.Text       = "Video ID: New Video";
     buttonSave.Enabled      = true;
 }
Example #2
0
        private void buttonModify_Click(object sender, EventArgs e)
        {
            if (!(listBoxVidoes.SelectedIndex == -1))
            {
                modifyVid               = (listBoxVidoes.SelectedItem as video);
                textBoxName.Text        = modifyVid.getName();
                textBoxPath.Text        = modifyVid.getURL();
                textBoxDescription.Text = modifyVid.getDescription();

                textBoxTags.Text   = modifyVid.getTagsString();
                labelVideoId.Text  = "Video ID: " + modifyVid.getVideoId().ToString();
                buttonSave.Enabled = true;
            }
        }
Example #3
0
 private void loader()
 {
     thisVideo.incViews();
     axWindowsMediaPlayer1.URL = thisVideo.getURL();
     labelVideoName.Text       = thisVideo.getName();
     labelLikesNum.Text        = thisVideo.getLikes().ToString();
     labelDislikesNum.Text     = thisVideo.getDislikes().ToString();
     labelViewsNum.Text        = thisVideo.getViews().ToString();
     labelCreatorName.Text     = thisVideo.getcreatorName();
     buildComments();
     populateVideoItems();
     //update ths to load checks from user
     handleChecked           = false;
     checkBoxLike.Checked    = false;
     checkBoxDislike.Checked = false;
     handleChecked           = true;
 }