Exemple #1
0
        protected void InitAlbumPresenttion()
        {
            ClearMiddlePannel();

            albumPresentation = new AlbumPresentation
            {
                Size     = songlist.Size,
                Location = songlist.Location,
                Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right
            };

            Controls.Add(albumPresentation);

            Invalidate(true);
        }
Exemple #2
0
        private void ClearMiddlePannel()
        {
            songlist.Enabled = false;
            songlist.Visible = false;

            artistGrid.Enabled = false;
            artistGrid.Visible = false;

            albumGrid.Enabled  = false;
            artistGrid.Visible = false;

            albumPresentation?.Dispose();
            albumPresentation = null;

            configControl?.Dispose();
            configControl = null;
        }