示例#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;
 }
示例#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;
            }
        }