public Window1(MainWindow win) { WindowStartupLocation = WindowStartupLocation.CenterScreen; Topmost = true; _win = win; InitializeComponent(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((MediaPlayer.MainWindow)(target)); return; case 2: this.opener = ((System.Windows.Controls.MenuItem)(target)); #line 31 "..\..\MainWindow.xaml" this.opener.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 3: #line 39 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 4: #line 40 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 5: #line 41 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 6: this.timer = ((System.Windows.Controls.Slider)(target)); #line 47 "..\..\MainWindow.xaml" this.timer.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.timer_ValueChanged); #line default #line hidden return; case 7: this.timeOfWatchedVideo = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.totalTimeOfWatchedVideo = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.player = ((System.Windows.Controls.MediaElement)(target)); #line 57 "..\..\MainWindow.xaml" this.player.MediaFailed += new System.EventHandler <System.Windows.ExceptionRoutedEventArgs>(this.player_MediaFailed); #line default #line hidden #line 58 "..\..\MainWindow.xaml" this.player.MediaOpened += new System.Windows.RoutedEventHandler(this.player_MediaOpened); #line default #line hidden return; } this._contentLoaded = true; }
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; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window = ((MediaPlayer.MainWindow)(target)); return; case 2: this.me = ((System.Windows.Controls.MediaElement)(target)); #line 17 "..\..\MainWindow.xaml" this.me.MediaOpened += new System.Windows.RoutedEventHandler(this.Element_MediaOpened); #line default #line hidden #line 17 "..\..\MainWindow.xaml" this.me.MediaEnded += new System.Windows.RoutedEventHandler(this.Element_MediaEnded); #line default #line hidden return; case 3: this.soundSlidr = ((System.Windows.Controls.Slider)(target)); #line 18 "..\..\MainWindow.xaml" this.soundSlidr.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.soundSlidr_ValueChanged); #line default #line hidden return; case 4: this.playBtn = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\MainWindow.xaml" this.playBtn.Click += new System.Windows.RoutedEventHandler(this.playBtn_Click); #line default #line hidden return; case 5: this.rewindBtn = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\MainWindow.xaml" this.rewindBtn.Click += new System.Windows.RoutedEventHandler(this.rewindBtn_Click); #line default #line hidden return; case 6: this.forwardBtn = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\MainWindow.xaml" this.forwardBtn.Click += new System.Windows.RoutedEventHandler(this.forwardBtn_Click); #line default #line hidden return; case 7: this.list = ((System.Windows.Controls.ListBox)(target)); #line 29 "..\..\MainWindow.xaml" this.list.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListBox_SelectionChanged); #line default #line hidden return; case 8: this.timelbl = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.openBtn = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.openBtn.Click += new System.Windows.RoutedEventHandler(this.openBtn_Click); #line default #line hidden return; case 10: this.progBar = ((System.Windows.Controls.ProgressBar)(target)); #line 41 "..\..\MainWindow.xaml" this.progBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.progBar_ValueChanged); #line default #line hidden return; case 11: this.pauseBtn = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\MainWindow.xaml" this.pauseBtn.Click += new System.Windows.RoutedEventHandler(this.pauseBtn_Click); #line default #line hidden return; } this._contentLoaded = true; }
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; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window1 = ((MediaPlayer.MainWindow)(target)); return; case 2: this.myInfo = ((System.Windows.Shell.TaskbarItemInfo)(target)); return; case 3: #line 12 "..\..\MainWindow.xaml" ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click); #line default #line hidden return; case 4: #line 13 "..\..\MainWindow.xaml" ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_1); #line default #line hidden return; case 5: #line 14 "..\..\MainWindow.xaml" ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_2); #line default #line hidden return; case 6: this.palyBtn = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\MainWindow.xaml" this.palyBtn.Click += new System.Windows.RoutedEventHandler(this.palyBtn_Click); #line default #line hidden return; case 7: this.stopBtn = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\MainWindow.xaml" this.stopBtn.Click += new System.Windows.RoutedEventHandler(this.stopBtn_Click); #line default #line hidden return; case 8: this.stopimg = ((System.Windows.Controls.Image)(target)); return; case 9: this.pauseBtn = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\MainWindow.xaml" this.pauseBtn.Click += new System.Windows.RoutedEventHandler(this.pauseBtn_Click); #line default #line hidden return; case 10: this.openBtn = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\MainWindow.xaml" this.openBtn.Click += new System.Windows.RoutedEventHandler(this.openBtn_Click); #line default #line hidden return; case 11: this.rewindBtn = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\MainWindow.xaml" this.rewindBtn.Click += new System.Windows.RoutedEventHandler(this.rewindBtn_Click); #line default #line hidden return; case 12: this.fastforwardBtn = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\MainWindow.xaml" this.fastforwardBtn.Click += new System.Windows.RoutedEventHandler(this.fastforwardBtn_Click); #line default #line hidden return; case 13: this.mediaElement = ((System.Windows.Controls.MediaElement)(target)); #line 45 "..\..\MainWindow.xaml" this.mediaElement.MediaEnded += new System.Windows.RoutedEventHandler(this.mediaElement_MediaEnded); #line default #line hidden #line 45 "..\..\MainWindow.xaml" this.mediaElement.MediaOpened += new System.Windows.RoutedEventHandler(this.mediaElement_MediaOpened); #line default #line hidden return; case 14: this.slider1 = ((System.Windows.Controls.Slider)(target)); #line 46 "..\..\MainWindow.xaml" this.slider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider1_ValueChanged); #line default #line hidden return; case 15: this.Volume_slider = ((System.Windows.Controls.Slider)(target)); #line 47 "..\..\MainWindow.xaml" this.Volume_slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Volume_slider_ValueChanged); #line default #line hidden return; case 16: this.listbox1 = ((System.Windows.Controls.ListBox)(target)); #line 57 "..\..\MainWindow.xaml" this.listbox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listbox1_SelectionChanged); #line default #line hidden #line 57 "..\..\MainWindow.xaml" this.listbox1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listbox1_MouseDoubleClick); #line default #line hidden return; case 17: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 18: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 19: this.speedslider = ((System.Windows.Controls.Slider)(target)); #line 60 "..\..\MainWindow.xaml" this.speedslider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.speedslider_ValueChanged); #line default #line hidden return; } this._contentLoaded = true; }
public new void Close() { instance = null; manualClose = true; base.Close(); }