private void MusicClick(object sender, RoutedEventArgs e) { var next_window = new MusicWindow(); next_window.Show(); this.Close(); }
DispatcherTimer SongBar(MusicWindow musicWindow) { timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; timer.Tick += (s, e) => { new Screen(musicWindow); }; return(timer); }
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(); }
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(); }