private void ClearPlayListPanel()
        {
            List <Control> controls = new List <Control>();

            panels = new List <Panel>();
            foreach (Control control in PlaylistPanel.Controls)
            {
                if (control.Name.Equals("lastpanel_"))
                {
                    controls.Add(control);
                }
            }
            foreach (Control cont in controls)
            {
                PlaylistPanel.Controls.Remove(cont);
            }
            PlaylistPanel.Refresh();
        }
Beispiel #2
0
        private void SortPlaylist_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            if (_channelView != null)
            {
                _channelView.SortBy = SortContextMenu.SortBy;
                if (PlaylistPanel != null)
                {
                    PlaylistPanel.Channels = _channelView.Channels;

                    PlaylistPanel.Refresh();
                }
            }

            BeginInvoke((Action)(() =>
            {
                if (SortPlaylistSplitButton != null)
                {
                    SortPlaylistSplitButton.Text = e.ClickedItem.Text;
                }
                // SortPlaylist_Click(sender, e);
            }));
            UpdateVisualCues();
        }