Beispiel #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 + "]";
        }
Beispiel #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();
        }
Beispiel #3
0
 private void MenuItem_AddToPlayList(object sender, RoutedEventArgs e)
 {
     PlaylistProvider.AddToPlayList((sender as MenuItem).Header.ToString(), VideoVM.PlayingVideoPath);
     RenderNextAndPrevious();
 }