private void MusicClick(object sender, RoutedEventArgs e)
        {
            var next_window = new MusicWindow();

            next_window.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        DispatcherTimer SongBar(MusicWindow musicWindow)
        {
            timer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1)
            };

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

            return(timer);
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 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();
        }