Пример #1
0
        private void LoadForm(object sender, EventArgs e)
        {
            var tracks = new TrackCollection <Track>();

            lnkTitle.Text = string.Format("Last {0} tracks played:", Channel.Tracks.Count);
            Text          = string.Format("{0} Playlist History", Channel.ChannelName);

            List <Track> list = Channel.Tracks.ConvertAll(TrackConverter);

            list.ForEach(tracks.Add);

            HistoryPanel.Controls.Clear();
            GC.Collect();
            GC.WaitForPendingFinalizers();
            HistoryPanel.Controls.AddRange(tracks.ToArray());
        }