Exemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((MusicPlayer.MainWindow)(target));
     
     #line 9 "..\..\MainWindow.xaml"
     this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.mainWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.taskbarPrevButton = ((System.Windows.Shell.ThumbButtonInfo)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.taskbarPrevButton.Click += new System.EventHandler(this.prevButton_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.taskbarPlayPauseButton = ((System.Windows.Shell.ThumbButtonInfo)(target));
     
     #line 14 "..\..\MainWindow.xaml"
     this.taskbarPlayPauseButton.Click += new System.EventHandler(this.playPauseButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.taskBarNextButton = ((System.Windows.Shell.ThumbButtonInfo)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.taskBarNextButton.Click += new System.EventHandler(this.nextButton_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.mainDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 8:
     this.playerBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 9:
     this.playerDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 10:
     this.controlButtonsStackPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 11:
     this.prevButton = ((System.Windows.Controls.Button)(target));
     
     #line 693 "..\..\MainWindow.xaml"
     this.prevButton.Click += new System.Windows.RoutedEventHandler(this.prevButton_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.playPauseButton = ((System.Windows.Controls.Button)(target));
     
     #line 697 "..\..\MainWindow.xaml"
     this.playPauseButton.Click += new System.Windows.RoutedEventHandler(this.playPauseButton_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.nextButton = ((System.Windows.Controls.Button)(target));
     
     #line 701 "..\..\MainWindow.xaml"
     this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextButton_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.randButton = ((System.Windows.Controls.Button)(target));
     
     #line 705 "..\..\MainWindow.xaml"
     this.randButton.Click += new System.Windows.RoutedEventHandler(this.Rand_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.repeatButton = ((System.Windows.Controls.Button)(target));
     
     #line 709 "..\..\MainWindow.xaml"
     this.repeatButton.Click += new System.Windows.RoutedEventHandler(this.Repeat_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.currentListButton = ((System.Windows.Controls.Button)(target));
     
     #line 713 "..\..\MainWindow.xaml"
     this.currentListButton.Click += new System.Windows.RoutedEventHandler(this.currentListButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.songMenuButton = ((System.Windows.Controls.Button)(target));
     
     #line 717 "..\..\MainWindow.xaml"
     this.songMenuButton.Click += new System.Windows.RoutedEventHandler(this.songMenuButton_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.infoStackPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 19:
     this.artistLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.titleLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.controlsDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 22:
     this.volumeSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 730 "..\..\MainWindow.xaml"
     this.volumeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.VolumeSlider_ValueChanged);
     
     #line default
     #line hidden
     
     #line 731 "..\..\MainWindow.xaml"
     this.volumeSlider.MouseMove += new System.Windows.Input.MouseEventHandler(this.slider_OnMouseMove);
     
     #line default
     #line hidden
     return;
     case 23:
     this.volumeButton = ((System.Windows.Controls.Button)(target));
     
     #line 733 "..\..\MainWindow.xaml"
     this.volumeButton.Click += new System.Windows.RoutedEventHandler(this.volumeButton_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.maxTimelinePosLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.slashLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.currTimelinePosLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.musicTimelineSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 768 "..\..\MainWindow.xaml"
     this.musicTimelineSlider.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.slider_MouseLeftButtonUp);
     
     #line default
     #line hidden
     
     #line 768 "..\..\MainWindow.xaml"
     this.musicTimelineSlider.MouseLeave += new System.Windows.Input.MouseEventHandler(this.slider_MouseLeave);
     
     #line default
     #line hidden
     
     #line 769 "..\..\MainWindow.xaml"
     this.musicTimelineSlider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.sliderThumb_DragCompleted));
     
     #line default
     #line hidden
     
     #line 770 "..\..\MainWindow.xaml"
     this.musicTimelineSlider.MouseMove += new System.Windows.Input.MouseEventHandler(this.slider_OnMouseMove);
     
     #line default
     #line hidden
     return;
     case 28:
     this.mediaElement = ((System.Windows.Controls.MediaElement)(target));
     
     #line 776 "..\..\MainWindow.xaml"
     this.mediaElement.MediaEnded += new System.Windows.RoutedEventHandler(this.MediaElement_MediaEnded);
     
     #line default
     #line hidden
     
     #line 777 "..\..\MainWindow.xaml"
     this.mediaElement.MediaOpened += new System.Windows.RoutedEventHandler(this.MediaElement_MediaOpened);
     
     #line default
     #line hidden
     return;
     case 29:
     this.mainAreaDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 30:
     this.navigBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 31:
     this.navigDockPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 32:
     this.navigProgressBar = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 33:
     this.modeStackPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 34:
     this.modeTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 35:
     this.modeComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 786 "..\..\MainWindow.xaml"
     this.modeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ModeComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 36:
     this.addressTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 37:
     this.themeStackPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 38:
     this.themeTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 39:
     this.themeComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 793 "..\..\MainWindow.xaml"
     this.themeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.themeComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 40:
     this.navigTabControl = ((System.Windows.Controls.TabControl)(target));
     
     #line 799 "..\..\MainWindow.xaml"
     this.navigTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.NavigTabControl_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 41:
     this.navigListView = ((System.Windows.Controls.ListView)(target));
     
     #line 801 "..\..\MainWindow.xaml"
     this.navigListView.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.NavigListView_MouseDown);
     
     #line default
     #line hidden
     
     #line 802 "..\..\MainWindow.xaml"
     this.navigListView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.NavigListView_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 42:
     this.favoritesListView = ((System.Windows.Controls.ListView)(target));
     
     #line 805 "..\..\MainWindow.xaml"
     this.favoritesListView.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.NavigFavListView_MouseDown);
     
     #line default
     #line hidden
     return;
     case 43:
     this.audioParamsBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 44:
     this.audioParamsStackPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 45:
     this.sortTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 46:
     this.sortComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 816 "..\..\MainWindow.xaml"
     this.sortComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SortComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 47:
     this.searchBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 48:
     this.searchStackPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 49:
     this.searchButton = ((System.Windows.Controls.Button)(target));
     
     #line 823 "..\..\MainWindow.xaml"
     this.searchButton.Click += new System.Windows.RoutedEventHandler(this.SearchButton_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.searchTextBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 827 "..\..\MainWindow.xaml"
     this.searchTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.SearchButton_Click);
     
     #line default
     #line hidden
     
     #line 828 "..\..\MainWindow.xaml"
     this.searchTextBox.GotFocus += new System.Windows.RoutedEventHandler(this.searchTextBox_GotFocus);
     
     #line default
     #line hidden
     
     #line 828 "..\..\MainWindow.xaml"
     this.searchTextBox.LostFocus += new System.Windows.RoutedEventHandler(this.searchTextBox_LostFocus);
     
     #line default
     #line hidden
     return;
     case 51:
     this.numOfAudioTextBlock = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.myMusicButton = ((System.Windows.Controls.Button)(target));
     
     #line 851 "..\..\MainWindow.xaml"
     this.myMusicButton.Click += new System.Windows.RoutedEventHandler(this.myMusicButton_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     this.songsProgressBar = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 54:
     this.playlist1DataGrid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 858 "..\..\MainWindow.xaml"
     this.playlist1DataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.playlistDataGrid_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 858 "..\..\MainWindow.xaml"
     this.playlist1DataGrid.AddHandler(System.Windows.Controls.ScrollViewer.ScrollChangedEvent, new System.Windows.Controls.ScrollChangedEventHandler(this.playlistsScrollViewer_ScrollChanged));
     
     #line default
     #line hidden
     return;
     case 55:
     this.playlist2DataGrid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 864 "..\..\MainWindow.xaml"
     this.playlist2DataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.playlistDataGrid_SelectionChanged);
     
     #line default
     #line hidden
     
     #line 864 "..\..\MainWindow.xaml"
     this.playlist2DataGrid.AddHandler(System.Windows.Controls.ScrollViewer.ScrollChangedEvent, new System.Windows.Controls.ScrollChangedEventHandler(this.playlistsScrollViewer_ScrollChanged));
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((MusicPlayer.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.mainWindow_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.image_blurred = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.image_main = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.tb_title = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.tb_artist = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.tb_album = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.tb_year = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.currentsong = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.DragBar = ((System.Windows.Shapes.Rectangle)(target));

            #line 119 "..\..\MainWindow.xaml"
                this.DragBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragBar_MouseDown);

            #line default
            #line hidden
                return;

            case 11:
                this.ImportButton = ((System.Windows.Controls.Button)(target));

            #line 122 "..\..\MainWindow.xaml"
                this.ImportButton.Click += new System.Windows.RoutedEventHandler(this.ImportButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.AboutButton = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.exit = ((System.Windows.Controls.Button)(target));

            #line 128 "..\..\MainWindow.xaml"
                this.exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.skip_back = ((System.Windows.Controls.Button)(target));

            #line 138 "..\..\MainWindow.xaml"
                this.skip_back.Click += new System.Windows.RoutedEventHandler(this.Skip_back_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.play = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 16:
                this.pause = ((System.Windows.Controls.Button)(target));

            #line 144 "..\..\MainWindow.xaml"
                this.pause.Click += new System.Windows.RoutedEventHandler(this.pause_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.skip_forward = ((System.Windows.Controls.Button)(target));

            #line 147 "..\..\MainWindow.xaml"
                this.skip_forward.Click += new System.Windows.RoutedEventHandler(this.skip_forward_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.loop = ((System.Windows.Controls.Button)(target));
                return;

            case 19:
                this.shuffle = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((MusicPlayer.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.mainWindow.Drop += new System.Windows.DragEventHandler(this.DropMusic);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.mainWindow.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.KeyBoardEventDown);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.mainWindow.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.KeyBoardEventUp);

            #line default
            #line hidden
                return;

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

            case 3:
                this.OpenCloseListOfSongs = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.OpenCloseListOfSongs.Click += new System.Windows.RoutedEventHandler(this.OpenCloseListSongs);

            #line default
            #line hidden
                return;

            case 4:
                this.name = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.spectrumAnalyzer = ((WPFSoundVisualizationLib.SpectrumAnalyzer)(target));
                return;

            case 6:
                this.listBox = ((System.Windows.Controls.ListBox)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.listBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.SelectSong);

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:
                this.Player = ((System.Windows.Controls.MediaElement)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.Player.MediaEnded += new System.Windows.RoutedEventHandler(this.NextSong);

            #line default
            #line hidden
                return;

            case 9:
                this.progress = ((System.Windows.Controls.Slider)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.progress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.TimeLineChange));

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.progress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.progress_DragStarted));

            #line default
            #line hidden
                return;

            case 10:
                this.SoundValue = ((System.Windows.Controls.Slider)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.SoundValue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SetValume);

            #line default
            #line hidden

            #line 59 "..\..\MainWindow.xaml"
                this.SoundValue.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.MouseWeel);

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:
                this.Preview = ((System.Windows.Controls.Image)(target));
                return;

            case 13:

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

            #line default
            #line hidden
                return;

            case 14:
                this.StartPause = ((System.Windows.Controls.Image)(target));
                return;

            case 15:

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

            #line default
            #line hidden
                return;

            case 16:

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

            #line default
            #line hidden
                return;

            case 17:

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

            #line default
            #line hidden
                return;

            case 18:
                this.Next = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.SoundImage = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainForm = ((MusicPlayer.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.MainForm.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MainForm_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.MainForm.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.MainForm_MouseWheel);

            #line default
            #line hidden
                return;

            case 2:
                this.toolbar = ((System.Windows.Shapes.Rectangle)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.toolbar.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Toolbar_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.rec_left = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.rec_right = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.close = ((System.Windows.Shapes.Ellipse)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.close.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Close_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 6:
                this.minimize = ((System.Windows.Shapes.Ellipse)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.minimize.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Minimize_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.mscroll_left = ((System.Windows.Controls.ScrollViewer)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.mscroll_left.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Mscroll_left_MouseEnter);

            #line default
            #line hidden

            #line 27 "..\..\MainWindow.xaml"
                this.mscroll_left.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Mscroll_left_MouseLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.mpanel_left = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.setting = ((System.Windows.Controls.Border)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.setting.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Setting_MouseEnter);

            #line default
            #line hidden

            #line 30 "..\..\MainWindow.xaml"
                this.setting.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Setting_MouseLeave);

            #line default
            #line hidden

            #line 30 "..\..\MainWindow.xaml"
                this.setting.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Setting_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.music_image = ((System.Windows.Controls.Border)(target));
                return;

            case 11:
                this.main_image = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.track_name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.main_btn = ((System.Windows.Controls.Border)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.main_btn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Main_btn_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 14:
                this.main_btn_img = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.time_label = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.search_box = ((System.Windows.Controls.TextBox)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.search_box.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Search_box_TextChanged);

            #line default
            #line hidden

            #line 74 "..\..\MainWindow.xaml"
                this.search_box.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Search_box_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 17:
                this.ClearBtn = ((System.Windows.Shapes.Ellipse)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.ClearBtn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ClearBtn_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 18:
                this.music_slider = ((System.Windows.Controls.Slider)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.music_slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sliProgress_ValueChanged);

            #line default
            #line hidden

            #line 81 "..\..\MainWindow.xaml"
                this.music_slider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.sliProgress_DragStarted));

            #line default
            #line hidden

            #line 81 "..\..\MainWindow.xaml"
                this.music_slider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.sliProgress_DragCompleted));

            #line default
            #line hidden

            #line 81 "..\..\MainWindow.xaml"
                this.music_slider.MouseMove += new System.Windows.Input.MouseEventHandler(this.Music_slider_MouseMove);

            #line default
            #line hidden
                return;

            case 19:
                this.volume_slider = ((System.Windows.Controls.Slider)(target));
                return;

            case 20:
                this.next_btn = ((System.Windows.Controls.Border)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.next_btn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Next_btn_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 21:
                this.main_btn_img1 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.prev_btn = ((System.Windows.Controls.Border)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.prev_btn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Prev_btn_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 23:
                this.main_btn_img2 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((MusicPlayer.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.mainWindow_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.DragBar = ((System.Windows.Shapes.Rectangle)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.DragBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DragBar_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.ImportButton = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.ImportButton.Click += new System.Windows.RoutedEventHandler(this.ImportButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.AboutButton = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.exit = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.skip_back = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.skip_back.Click += new System.Windows.RoutedEventHandler(this.Skip_back_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.play = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 9:
                this.pause = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.pause.Click += new System.Windows.RoutedEventHandler(this.pause_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.skip_forward = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.skip_forward.Click += new System.Windows.RoutedEventHandler(this.skip_forward_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.loop = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.shuffle = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }