Ejemplo n.º 1
0
        private void MenuItem_OpenPlayList(object sender, RoutedEventArgs e)
        {
            string     PlayListName = (sender as MenuItem).Header.ToString();
            VideoClass VideoToPlay  = PlaylistProvider.Load(PlayListName);

            PlayVideo(new Uri(VideoToPlay.Path));
            RenderNextAndPrevious();
            PlayingInfo.Header = "Playing: " + PlayListName + " [1/" + PlaylistProvider.CurrentPlaylist.Count + "]";
        }
Ejemplo n.º 2
0
        private void MenuItem_AddToNewPlayList(object sender, RoutedEventArgs e)
        {
            var dialog = new MyDialog();

            dialog.Owner = this;
            MyControl.MediaPlayer.Pause();

            if (dialog.ShowDialog() == true)
            {
                PlaylistProvider.CreateNew(dialog.ResponseText, VideoVM.PlayingVideoPath);
                MyControl.MediaPlayer.Play();
            }
            else
            {
                MyControl.MediaPlayer.Play();
            }
            Debug.WriteLine(dialog.ResponseText);
            RenderNextAndPrevious();
            PlaylistProvider.LoadAllLists();
            GenerateGrid();
        }
Ejemplo n.º 3
0
 private void MenuItem_AddToPlayList(object sender, RoutedEventArgs e)
 {
     PlaylistProvider.AddToPlayList((sender as MenuItem).Header.ToString(), VideoVM.PlayingVideoPath);
     RenderNextAndPrevious();
 }