Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);
     
     #line default
     #line hidden
     
     #line 8 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PlayPause_Executed);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 9 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);
     
     #line default
     #line hidden
     
     #line 9 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PreviousTrack_Executed);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 10 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);
     
     #line default
     #line hidden
     
     #line 10 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NextTrack_Executed);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Stop_CanExecute);
     
     #line default
     #line hidden
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Stop_Executed);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 13 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);
     
     #line default
     #line hidden
     return;
     case 6:
     this.mePlayer = ((System.Windows.Controls.MediaElement)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.mePlayer.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);
     
     #line default
     #line hidden
     return;
     case 7:
     this.mbMenu = ((MediaPlayer.MusicBar)(target));
     return;
     case 8:
     this.lblProgressStatus = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.sliProgress = ((System.Windows.Controls.Slider)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.sliProgress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.sliProgress_DragStarted));
     
     #line default
     #line hidden
     
     #line 41 "..\..\MainWindow.xaml"
     this.sliProgress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.sliProgress_DragCompleted));
     
     #line default
     #line hidden
     
     #line 41 "..\..\MainWindow.xaml"
     this.sliProgress.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.sliProgress_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 10:
     this.pbVolume = ((System.Windows.Controls.ProgressBar)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PlayPause_Executed);

            #line default
            #line hidden
                return;

            case 2:

            #line 9 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PreviousTrack_Executed);

            #line default
            #line hidden
                return;

            case 3:

            #line 10 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.NextTrack_CanExecute);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NextTrack_Executed);

            #line default
            #line hidden
                return;

            case 4:

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Stop_CanExecute);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Stop_Executed);

            #line default
            #line hidden
                return;

            case 5:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);

            #line default
            #line hidden
                return;

            case 6:
                this.mePlayer = ((System.Windows.Controls.MediaElement)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.mePlayer.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);

            #line default
            #line hidden
                return;

            case 7:
                this.mbMenu = ((MediaPlayer.MusicBar)(target));
                return;

            case 8:
                this.lblProgressStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 10:
                this.pbVolume = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }