示例#1
0
        // load form
        private void MusicApp_Load(object sender, EventArgs e)
        {
            // ẩn vùng bao quanh bút
            // menu button
            button_search.FlatAppearance.BorderSize        = 0;
            button_album.FlatAppearance.BorderSize         = 0;
            button_home.FlatAppearance.BorderSize          = 0;
            button_playlistSongs.FlatAppearance.BorderSize = 0;
            button_singer.FlatAppearance.BorderSize        = 0;
            button_discover.FlatAppearance.BorderSize      = 0;
            button_Songs.FlatAppearance.BorderSize         = 0;
            button_importMusic.FlatAppearance.BorderSize   = 0;
            button_karaoke.FlatAppearance.BorderSize       = 0;

            // moreTool button
            button_addPlaylist.FlatAppearance.BorderSize = 0;
            button_moveToSong.FlatAppearance.BorderSize  = 0;
            button_setTime.FlatAppearance.BorderSize     = 0;

            //karaoke
            button_recording.FlatAppearance.BorderSize = 0;

            // load form vào panel main
            homePage homePageForm = new homePage();

            homePage.PassSong += HomePage_PassSong;
            openChildForm(homePageForm);

            // playbar
            trackBar_volume.Value = axWindowsMediaPlayer.settings.volume;
            button_playKaraoke.FlatAppearance.BorderSize = 0;
            button_volume.FlatAppearance.BorderSize      = 0;
            button_moreTools.FlatAppearance.BorderSize   = 0;
            button_playlist.FlatAppearance.BorderSize    = 0;
            button_play.FlatAppearance.BorderSize        = 0;
            button_next.FlatAppearance.BorderSize        = 0;
            button_previous.FlatAppearance.BorderSize    = 0;
            button_mix.FlatAppearance.BorderSize         = 0;
            button_repeat.FlatAppearance.BorderSize      = 0;
            button_trash.FlatAppearance.BorderSize       = 0;

            // load bài gốc
            nowPlayingPlaylist  = new List <song>();
            nowPlayingPlaylist  = songDAO.Instance.getsongbyname(label_nameSong.Text);
            indexSongNowPlaying = 0;
        }
示例#2
0
        // hàm show form homePage
        private void button_home_Click(object sender, EventArgs e)
        {
            Form homePage = new homePage();

            openChildForm(homePage);
        }