コード例 #1
0
        private void MusicClick(object sender, RoutedEventArgs e)
        {
            var next_window = new MusicWindow();

            next_window.Show();
            this.Close();
        }
コード例 #2
0
ファイル: Timer.cs プロジェクト: lehoangbaochung/zhtv-beta
        DispatcherTimer SongBar(MusicWindow musicWindow)
        {
            timer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1)
            };

            timer.Tick += (s, e) =>
            {
                new Screen(musicWindow);
            };

            return(timer);
        }
コード例 #3
0
ファイル: Timer.cs プロジェクト: lehoangbaochung/zhtv-beta
        public Timer(MusicWindow musicWindow)
        {
            tbInfo        = musicWindow.txtInfo;
            tbOrder       = musicWindow.txtOrder;
            tbPlaylist    = musicWindow.txtPlaylist;
            tbPlayingSong = musicWindow.txtNextSong;

            Info(1150, -3000).Start();
            Playlist(1200, -4000).Start();
            PlayingSongName().Start();
            OrderInfo().Start();
            SongBar(musicWindow).Start();
        }
コード例 #4
0
        public Screen(MusicWindow musicWindow)
        {
            musicWindow.txtSong1.Text = SongName(0);
            musicWindow.txtSong2.Text = SongName(1);
            musicWindow.txtSong3.Text = SongName(2);

            musicWindow.prbSong1.Value = SongOrderCount(0);
            musicWindow.prbSong2.Value = SongOrderCount(1);
            musicWindow.prbSong3.Value = SongOrderCount(2);

            musicWindow.imgScreen.Source = AlbumImage();
            musicWindow.txtPlaylist.Text = Playlist();
            musicWindow.txtNextSong.Text = PlayingSongName();
        }