Interaction logic for Playlist.xaml
Наследование: System.Windows.Controls.UserControl
Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     this.brain = new Playlist(this.player);
     this.button_add.Click += new RoutedEventHandler(button_add_Click);
     this.button_back.Click += new RoutedEventHandler(button_back_Click);
     this.button_forward.Click += new RoutedEventHandler(button_forward_Click);
     this.button_play.Click += new RoutedEventHandler(button_play_Click);
     this.button_repeat.Click += new RoutedEventHandler(button_repeat_Click);
     this.button_shuffle.Click += new RoutedEventHandler(button_shuffle_Click);
     this.button_stop.Click += new RoutedEventHandler(button_stop_Click);
     this.player.MediaOpened += new RoutedEventHandler(mediaElement_MediaOpened);
     CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);
     this.offsetSlider.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(offsetSlider_PreviewMouseLeftButtonDown);
     this.offsetSlider.PreviewMouseLeftButtonUp   += new MouseButtonEventHandler(offsetSlider_PreviewMouseLeftButtonUp);
     this.button_list.Click += new RoutedEventHandler(button_list_Click);
     this.offsetSlider.Minimum = 0;
     this.offsetSlider.IsMoveToPointEnabled = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((MediaPlayer.MainWindow)(target));

            #line 7 "..\..\MainWindow.xaml"
                this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mediaControl_MouseDown);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.Drop += new System.Windows.DragEventHandler(this.Window_Drop);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonDown);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonUp);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                this.Window.KeyDown += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);

            #line default
            #line hidden
                return;

            case 2:
                this.Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Menu = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 4:
                this.contextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 5:
                this.playmini = ((System.Windows.Controls.MenuItem)(target));

            #line 413 "..\..\MainWindow.xaml"
                this.playmini.Click += new System.Windows.RoutedEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.pausemini = ((System.Windows.Controls.MenuItem)(target));

            #line 418 "..\..\MainWindow.xaml"
                this.pausemini.Click += new System.Windows.RoutedEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.next = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.back = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 9:
                this.audio = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 10:
                this.video = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 11:
                this.subtitle = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:

            #line 436 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);

            #line default
            #line hidden
                return;

            case 13:

            #line 437 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.StyleSubtitle);

            #line default
            #line hidden
                return;

            case 14:
                this.OpenMedia = ((System.Windows.Controls.MenuItem)(target));

            #line 443 "..\..\MainWindow.xaml"
                this.OpenMedia.Click += new System.Windows.RoutedEventHandler(this.Open_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.OpenUrl = ((System.Windows.Controls.MenuItem)(target));

            #line 448 "..\..\MainWindow.xaml"
                this.OpenUrl.Click += new System.Windows.RoutedEventHandler(this.OpenUrl_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.OpenPlaylist = ((System.Windows.Controls.MenuItem)(target));

            #line 453 "..\..\MainWindow.xaml"
                this.OpenPlaylist.Click += new System.Windows.RoutedEventHandler(this.searchPlaylist);

            #line default
            #line hidden
                return;

            case 17:
                this.Quit = ((System.Windows.Controls.MenuItem)(target));

            #line 460 "..\..\MainWindow.xaml"
                this.Quit.Click += new System.Windows.RoutedEventHandler(this.Quit_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Menu2 = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 19:
                this.contextMenu2 = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 20:
                this.add = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 21:
                this.Copy = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 22:
                this.Paste = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 23:
                this.delete = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 24:
                this.layoutRoot = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 25:
                this.mediaControl = ((System.Windows.Controls.MediaElement)(target));

            #line 491 "..\..\MainWindow.xaml"
                this.mediaControl.MediaOpened += new System.Windows.RoutedEventHandler(this.media_MediaOpened);

            #line default
            #line hidden

            #line 491 "..\..\MainWindow.xaml"
                this.mediaControl.MouseMove += new System.Windows.Input.MouseEventHandler(this.mediaControl_MouseMove);

            #line default
            #line hidden

            #line 491 "..\..\MainWindow.xaml"
                this.mediaControl.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mediaControl_MouseDown);

            #line default
            #line hidden

            #line 491 "..\..\MainWindow.xaml"
                this.mediaControl.KeyDown += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);

            #line default
            #line hidden

            #line 491 "..\..\MainWindow.xaml"
                this.mediaControl.KeyUp += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);

            #line default
            #line hidden
                return;

            case 26:
                this.border = ((System.Windows.Controls.Border)(target));

            #line 493 "..\..\MainWindow.xaml"
                this.border.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);

            #line default
            #line hidden
                return;

            case 27:
                this.BorderTextBegin = ((System.Windows.Controls.Border)(target));
                return;

            case 28:
                this.time = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.BorderTextEnd = ((System.Windows.Controls.Border)(target));
                return;

            case 30:
                this.timeend = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.slider2 = ((System.Windows.Controls.Slider)(target));

            #line 534 "..\..\MainWindow.xaml"
                this.slider2.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.seekBar_DragStarted));

            #line default
            #line hidden

            #line 534 "..\..\MainWindow.xaml"
                this.slider2.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.seekBar_DragCompleted));

            #line default
            #line hidden

            #line 534 "..\..\MainWindow.xaml"
                this.slider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider2_ValueChanged);

            #line default
            #line hidden

            #line 534 "..\..\MainWindow.xaml"
                this.slider2.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider2_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 32:
                this.Panel = ((System.Windows.Controls.StackPanel)(target));

            #line 548 "..\..\MainWindow.xaml"
                this.Panel.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);

            #line default
            #line hidden
                return;

            case 33:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 34:
                this.visualizer = ((System.Windows.Controls.Button)(target));

            #line 550 "..\..\MainWindow.xaml"
                this.visualizer.Click += new System.Windows.RoutedEventHandler(this.Visualizer_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.ImageVisualizer = ((System.Windows.Controls.Image)(target));
                return;

            case 36:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 559 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.ImagePlay = ((System.Windows.Controls.Image)(target));
                return;

            case 38:
                this.backward = ((System.Windows.Controls.Button)(target));

            #line 572 "..\..\MainWindow.xaml"
                this.backward.Click += new System.Windows.RoutedEventHandler(this.Prev);

            #line default
            #line hidden
                return;

            case 39:

            #line 585 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.stop_Click);

            #line default
            #line hidden
                return;

            case 40:

            #line 599 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Next);

            #line default
            #line hidden
                return;

            case 41:

            #line 613 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.load_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.sound = ((System.Windows.Controls.Button)(target));

            #line 626 "..\..\MainWindow.xaml"
                this.sound.Click += new System.Windows.RoutedEventHandler(this.sound_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.ImageSound = ((System.Windows.Controls.Image)(target));
                return;

            case 44:

            #line 640 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Minimize_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.volumeSlider = ((System.Windows.Controls.Slider)(target));

            #line 654 "..\..\MainWindow.xaml"
                this.volumeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.volumeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.Subtitle = ((System.Windows.Controls.TextBlock)(target));

            #line 656 "..\..\MainWindow.xaml"
                this.Subtitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Subtitle_MouseDown);

            #line default
            #line hidden
                return;

            case 47:
                this.TopMenuPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 48:
                this.TopMenu = ((System.Windows.Controls.Menu)(target));

            #line 658 "..\..\MainWindow.xaml"
                this.TopMenu.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);

            #line default
            #line hidden
                return;

            case 49:

            #line 669 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.load_Click);

            #line default
            #line hidden
                return;

            case 50:

            #line 670 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.searchPlaylist);

            #line default
            #line hidden
                return;

            case 51:

            #line 671 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenUrl_Click);

            #line default
            #line hidden
                return;

            case 52:

            #line 678 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Quit_Click);

            #line default
            #line hidden
                return;

            case 53:

            #line 681 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.play_Click);

            #line default
            #line hidden
                return;

            case 54:

            #line 682 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.pause_Click);

            #line default
            #line hidden
                return;

            case 55:

            #line 683 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Next);

            #line default
            #line hidden
                return;

            case 56:

            #line 684 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Prev);

            #line default
            #line hidden
                return;

            case 57:

            #line 686 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.stop_Click);

            #line default
            #line hidden
                return;

            case 58:

            #line 702 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);

            #line default
            #line hidden
                return;

            case 59:

            #line 704 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MFullscreen_Click);

            #line default
            #line hidden
                return;

            case 60:

            #line 710 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);

            #line default
            #line hidden
                return;

            case 61:

            #line 711 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.StyleSubtitle);

            #line default
            #line hidden
                return;

            case 62:
                this.expander1 = ((System.Windows.Controls.Expander)(target));

            #line 726 "..\..\MainWindow.xaml"
                this.expander1.MouseMove += new System.Windows.Input.MouseEventHandler(this.mediaControl_MouseMove);

            #line default
            #line hidden

            #line 726 "..\..\MainWindow.xaml"
                this.expander1.Expanded += new System.Windows.RoutedEventHandler(this.Expanded);

            #line default
            #line hidden
                return;

            case 63:
                this.playlist = ((MediaPlayer.Playlist)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((MediaPlayer.MainWindow)(target));
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mediaControl_MouseDown);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.Drop += new System.Windows.DragEventHandler(this.Window_Drop);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonDown);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseRightButtonUp);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     
     #line 7 "..\..\MainWindow.xaml"
     this.Window.KeyDown += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Grid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.Menu = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 4:
     this.contextMenu = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 5:
     this.playmini = ((System.Windows.Controls.MenuItem)(target));
     
     #line 413 "..\..\MainWindow.xaml"
     this.playmini.Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.pausemini = ((System.Windows.Controls.MenuItem)(target));
     
     #line 418 "..\..\MainWindow.xaml"
     this.pausemini.Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.next = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 8:
     this.back = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 9:
     this.audio = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 10:
     this.video = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 11:
     this.subtitle = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 12:
     
     #line 436 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 437 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.StyleSubtitle);
     
     #line default
     #line hidden
     return;
     case 14:
     this.OpenMedia = ((System.Windows.Controls.MenuItem)(target));
     
     #line 443 "..\..\MainWindow.xaml"
     this.OpenMedia.Click += new System.Windows.RoutedEventHandler(this.Open_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.OpenUrl = ((System.Windows.Controls.MenuItem)(target));
     
     #line 448 "..\..\MainWindow.xaml"
     this.OpenUrl.Click += new System.Windows.RoutedEventHandler(this.OpenUrl_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.OpenPlaylist = ((System.Windows.Controls.MenuItem)(target));
     
     #line 453 "..\..\MainWindow.xaml"
     this.OpenPlaylist.Click += new System.Windows.RoutedEventHandler(this.searchPlaylist);
     
     #line default
     #line hidden
     return;
     case 17:
     this.Quit = ((System.Windows.Controls.MenuItem)(target));
     
     #line 460 "..\..\MainWindow.xaml"
     this.Quit.Click += new System.Windows.RoutedEventHandler(this.Quit_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.Menu2 = ((System.Windows.Controls.RichTextBox)(target));
     return;
     case 19:
     this.contextMenu2 = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 20:
     this.add = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 21:
     this.Copy = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 22:
     this.Paste = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 23:
     this.delete = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 24:
     this.layoutRoot = ((System.Windows.Controls.Viewbox)(target));
     return;
     case 25:
     this.mediaControl = ((System.Windows.Controls.MediaElement)(target));
     
     #line 491 "..\..\MainWindow.xaml"
     this.mediaControl.MediaOpened += new System.Windows.RoutedEventHandler(this.media_MediaOpened);
     
     #line default
     #line hidden
     
     #line 491 "..\..\MainWindow.xaml"
     this.mediaControl.MouseMove += new System.Windows.Input.MouseEventHandler(this.mediaControl_MouseMove);
     
     #line default
     #line hidden
     
     #line 491 "..\..\MainWindow.xaml"
     this.mediaControl.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.mediaControl_MouseDown);
     
     #line default
     #line hidden
     
     #line 491 "..\..\MainWindow.xaml"
     this.mediaControl.KeyDown += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);
     
     #line default
     #line hidden
     
     #line 491 "..\..\MainWindow.xaml"
     this.mediaControl.KeyUp += new System.Windows.Input.KeyEventHandler(this.Check_Key_Event);
     
     #line default
     #line hidden
     return;
     case 26:
     this.border = ((System.Windows.Controls.Border)(target));
     
     #line 493 "..\..\MainWindow.xaml"
     this.border.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);
     
     #line default
     #line hidden
     return;
     case 27:
     this.BorderTextBegin = ((System.Windows.Controls.Border)(target));
     return;
     case 28:
     this.time = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 29:
     this.BorderTextEnd = ((System.Windows.Controls.Border)(target));
     return;
     case 30:
     this.timeend = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 31:
     this.slider2 = ((System.Windows.Controls.Slider)(target));
     
     #line 534 "..\..\MainWindow.xaml"
     this.slider2.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.seekBar_DragStarted));
     
     #line default
     #line hidden
     
     #line 534 "..\..\MainWindow.xaml"
     this.slider2.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.seekBar_DragCompleted));
     
     #line default
     #line hidden
     
     #line 534 "..\..\MainWindow.xaml"
     this.slider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slider2_ValueChanged);
     
     #line default
     #line hidden
     
     #line 534 "..\..\MainWindow.xaml"
     this.slider2.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider2_MouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 32:
     this.Panel = ((System.Windows.Controls.StackPanel)(target));
     
     #line 548 "..\..\MainWindow.xaml"
     this.Panel.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);
     
     #line default
     #line hidden
     return;
     case 33:
     this.canvas1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 34:
     this.visualizer = ((System.Windows.Controls.Button)(target));
     
     #line 550 "..\..\MainWindow.xaml"
     this.visualizer.Click += new System.Windows.RoutedEventHandler(this.Visualizer_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.ImageVisualizer = ((System.Windows.Controls.Image)(target));
     return;
     case 36:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 559 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.ImagePlay = ((System.Windows.Controls.Image)(target));
     return;
     case 38:
     this.backward = ((System.Windows.Controls.Button)(target));
     
     #line 572 "..\..\MainWindow.xaml"
     this.backward.Click += new System.Windows.RoutedEventHandler(this.Prev);
     
     #line default
     #line hidden
     return;
     case 39:
     
     #line 585 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.stop_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     
     #line 599 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Next);
     
     #line default
     #line hidden
     return;
     case 41:
     
     #line 613 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.load_Click);
     
     #line default
     #line hidden
     return;
     case 42:
     this.sound = ((System.Windows.Controls.Button)(target));
     
     #line 626 "..\..\MainWindow.xaml"
     this.sound.Click += new System.Windows.RoutedEventHandler(this.sound_Click);
     
     #line default
     #line hidden
     return;
     case 43:
     this.ImageSound = ((System.Windows.Controls.Image)(target));
     return;
     case 44:
     
     #line 640 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Minimize_Click);
     
     #line default
     #line hidden
     return;
     case 45:
     this.volumeSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 654 "..\..\MainWindow.xaml"
     this.volumeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.volumeSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 46:
     this.Subtitle = ((System.Windows.Controls.TextBlock)(target));
     
     #line 656 "..\..\MainWindow.xaml"
     this.Subtitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Subtitle_MouseDown);
     
     #line default
     #line hidden
     return;
     case 47:
     this.TopMenuPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 48:
     this.TopMenu = ((System.Windows.Controls.Menu)(target));
     
     #line 658 "..\..\MainWindow.xaml"
     this.TopMenu.MouseMove += new System.Windows.Input.MouseEventHandler(this.Panel_MouseMove);
     
     #line default
     #line hidden
     return;
     case 49:
     
     #line 669 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.load_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     
     #line 670 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.searchPlaylist);
     
     #line default
     #line hidden
     return;
     case 51:
     
     #line 671 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenUrl_Click);
     
     #line default
     #line hidden
     return;
     case 52:
     
     #line 678 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Quit_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     
     #line 681 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     
     #line 682 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.pause_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     
     #line 683 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Next);
     
     #line default
     #line hidden
     return;
     case 56:
     
     #line 684 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Prev);
     
     #line default
     #line hidden
     return;
     case 57:
     
     #line 686 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.stop_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     
     #line 702 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);
     
     #line default
     #line hidden
     return;
     case 59:
     
     #line 704 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MFullscreen_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     
     #line 710 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenSubtitle);
     
     #line default
     #line hidden
     return;
     case 61:
     
     #line 711 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.StyleSubtitle);
     
     #line default
     #line hidden
     return;
     case 62:
     this.expander1 = ((System.Windows.Controls.Expander)(target));
     
     #line 726 "..\..\MainWindow.xaml"
     this.expander1.MouseMove += new System.Windows.Input.MouseEventHandler(this.mediaControl_MouseMove);
     
     #line default
     #line hidden
     
     #line 726 "..\..\MainWindow.xaml"
     this.expander1.Expanded += new System.Windows.RoutedEventHandler(this.Expanded);
     
     #line default
     #line hidden
     return;
     case 63:
     this.playlist = ((MediaPlayer.Playlist)(target));
     return;
     }
     this._contentLoaded = true;
 }