Ejemplo n.º 1
0
 private void ListTracks_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (ListTracks.SelectedItem != null)
     {
         MainWindow.GetInstance().SetAudio((IAudio)(ListTracks.SelectedItem), PlaylistLibrary.CurrentPlaylist.Tracks);
     }
 }
Ejemplo n.º 2
0
 private void ListTracks_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (ListTracks.SelectedItem != null)
     {
         MainWindow.GetInstance().SetAudio((IAudio)(ListTracks.SelectedItem), Library.Files);
     }
 }
Ejemplo n.º 3
0
 private void DeleteTrackFromPlaylist(object sender, MouseButtonEventArgs e)
 {
     if (ListTracks.SelectedItem != null)
     {
         MainWindow.GetInstance().SetProperFavState((IAudio)(ListTracks.SelectedItem));
         PlaylistLibrary.CurrentPlaylist.RemoveTrack((IAudio)(ListTracks.SelectedItem));
     }
 }
 private void DeletePlaylist(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (listPlaylists.SelectedItem != null)
     {
         Playlist p = (Playlist)(listPlaylists.SelectedItem);
         MainWindow.GetInstance().SetProperFavState(p);
         PlaylistLibrary.RemoveList(p);
     }
 }
 private void ListTracks_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (listPlaylists.SelectedItem != null)
     {
         Playlist list = (Playlist)(listPlaylists.SelectedItem);
         PlaylistLibrary.CurrentPlaylist = list;
         MainWindow.GetInstance().SetFavsState();
         MainWindow.GetInstance().MainFrame.Content = PlaylistPage.GetInstance();
     }
 }
Ejemplo n.º 6
0
        private void OpenNewDirectory(object sender, System.Windows.RoutedEventArgs e)
        {
            using (var fbd = new FolderBrowserDialog())
            {
                fbd.ShowDialog();

                if (!string.IsNullOrWhiteSpace(fbd.SelectedPath))
                {
                    Library.Update(fbd.SelectedPath);
                    MainWindow.GetInstance().SetLibraryEmpty();
                    ListTracks.ItemsSource = Library.Files;
                }
            }
        }
Ejemplo n.º 7
0
 private void Button_ClickBackToMainPage(object sender, RoutedEventArgs e)
 {
     MainWindow.GetInstance().MainFrame.GoBack();
 }
Ejemplo n.º 8
0
 private void Button_ClickToInfo(object sender, RoutedEventArgs e)
 {
     MainWindow.GetInstance().MainFrame.Content = MoreInfoPage.GetInstance();
 }
Ejemplo n.º 9
0
 private void Button_ClickToLyrics(object sender, RoutedEventArgs e)
 {
     MainWindow.GetInstance().MainFrame.Content = LyricsPage.GetInstance();
 }