Exemplo n.º 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);
        }
Exemplo n.º 2
0
        private void cmdWeather_Click(object sender, EventArgs e)
        {
            hideForms();

            weatherPage = new WeatherPage(this.currentUser, this);
            weatherPage.TopLevel = false;
            weatherPage.Parent = this;

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

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