Ejemplo n.º 1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new OpenFileDialog();

            dialog.Multiselect = true;
            var result = dialog.ShowDialog();

            if (result == true)
            {
                VideoWindowViewModel vm = (VideoWindowViewModel)DataContext;
                vm.Playlist.Add(dialog.FileNames);
            }
        }
Ejemplo n.º 2
0
        private void Slider_MouseLeftButtonUp(object sender, RoutedEventArgs e)
        {
            VideoWindowViewModel vm = (VideoWindowViewModel)DataContext;

            vm.Player.SliderPositionClicked();
        }
Ejemplo n.º 3
0
        private void Slider_DragCompleted(object sender, RoutedEventArgs e)
        {
            VideoWindowViewModel vm = (VideoWindowViewModel)DataContext;

            vm.Player.SliderDragCompleted();
        }
Ejemplo n.º 4
0
        private void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            VideoWindowViewModel vm = (VideoWindowViewModel)DataContext;

            vm.ListBoxItemDoubleClicked();
        }