예제 #1
0
        /// <summary>
        /// Intialiser for home page
        /// </summary>
        public HomePage()
        {
            InitializeComponent();

            // Sets up form components
            musicPlayer = new frmMusicPlayer(this);
            playlists = new ViewUserPlaylists();
            searchResults = new SearchResults(musicPlayer, this);
            profileScreen = new UserProfile();
            viewPlaylist = new ViewPlaylist();
            weatherPage = new WeatherPage(this.currentUser, this);
        }
예제 #2
0
 public Recommendations(ViewPlaylist VP)
 {
     InitializeComponent();
     this.parent = VP;
 }
예제 #3
0
        //Method to open single playlist view
        public void showViewPlaylist(Playlist playlist)
        {
            hideForms();

            viewPlaylist = new ViewPlaylist(playlist, this.musicPlayer, this.currentUser, this);

            viewPlaylist.TopLevel = false;
            viewPlaylist.Parent = this;
            viewPlaylist.setupAlbumCovers(playlist.getSongs());
            viewPlaylist.setupLabels();

            viewPlaylist.FormBorderStyle = FormBorderStyle.None;
            viewPlaylist.Size = new Size(1092, 392);

            picBoxBackground.Hide();
            viewPlaylist.Show();
        }