コード例 #1
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;
            }
        }