コード例 #1
0
ファイル: WolfWatchMetro.cs プロジェクト: NaolShow/WolfWatch
        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);
            }
        }
コード例 #2
0
ファイル: WolfWatchMetro.cs プロジェクト: NaolShow/WolfWatch
 // Add playlist
 private void addPlaylistToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WWTabControl.TabPages.Insert(WWTabControl.TabCount, tabAddPlaylist);
     WWTabControl.SelectTab(tabAddPlaylist);
 }