Ejemplo n.º 1
0
        private void editVideoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                if (!String.IsNullOrEmpty(playlistsList.Text))
                {
                    if (!String.IsNullOrEmpty(wFile.ToString()))
                    {
                        WMP.URL = "";
                        WWTabControl.TabPages.Insert(WWTabControl.TabCount, tabEditVideo);
                        WWTabControl.SelectTab(tabEditVideo);

                        // Load video informations
                        editvideo_videoname.Text        = wFile.ToString();
                        editvideo_videodescription.Text = wFile.Description;
                    }
                    else
                    {
                        MetroMessageBox.Show(this, Langs.selectVideo, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
                else
                {
                    MetroMessageBox.Show(this, Langs.selectPlaylist, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                MetroMessageBox.Show(this, ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
 // Add playlist
 private void addPlaylistToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WWTabControl.TabPages.Insert(WWTabControl.TabCount, tabAddPlaylist);
     WWTabControl.SelectTab(tabAddPlaylist);
 }