/// <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); }
public Recommendations(ViewPlaylist VP) { InitializeComponent(); this.parent = VP; }
//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(); }