Example #1
0
        private void LoadArtists()
        {
            IEnumerable <Artist> artistList = source;

            if (!string.IsNullOrEmpty(query))
            {
                artistList = source.SearchByName(query);
            }

            SuspendLayout();
            panel.Controls.Clear();

            foreach (Artist a in artistList)
            {
                AddArtistControl(a);
            }

            ResumeLayout();
        }