コード例 #1
0
ファイル: HomePage.cs プロジェクト: andrewdavis1995/MALTMusic
        /// <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
ファイル: HomePage.cs プロジェクト: andrewdavis1995/MALTMusic
        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();
        }