예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((MikiMusicPlayer.MainWindow)(target));
                return;

            case 3:

            #line 60 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\MainWindow.xaml"
                this.BtnPlayMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPlayMusic_OnClick);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\MainWindow.xaml"
                this.BtnPauseMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPauseMusic_OnClick);

            #line default
            #line hidden
                return;

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

            #line 86 "..\..\MainWindow.xaml"
                this.BtnPreviousMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPreviousMusic_OnClick);

            #line default
            #line hidden
                return;

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

            #line 89 "..\..\MainWindow.xaml"
                this.NextMusic.Click += new System.Windows.RoutedEventHandler(this.BtnNextMusic_OnClick);

            #line default
            #line hidden
                return;

            case 8:
                this.Sound = ((System.Windows.Controls.Image)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.Sound.MouseMove += new System.Windows.Input.MouseEventHandler(this.Sound_OnMouseMove);

            #line default
            #line hidden
                return;

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

            case 10:
                this.MinuteArea = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.SecondArea = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.SoundBorder = ((System.Windows.Controls.Border)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.SoundBorder.MouseLeave += new System.Windows.Input.MouseEventHandler(this.SoundBorder_OnMouseLeave);

            #line default
            #line hidden
                return;

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

            #line 105 "..\..\MainWindow.xaml"
                this.SoundButton.Click += new System.Windows.RoutedEventHandler(this.SoundButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 106 "..\..\MainWindow.xaml"
                this.SoundMuteButton.Click += new System.Windows.RoutedEventHandler(this.SoundMuteButton_OnClick);

            #line default
            #line hidden
                return;

            case 15:
                this.BtnVolumeValue = ((System.Windows.Controls.Slider)(target));

            #line 107 "..\..\MainWindow.xaml"
                this.BtnVolumeValue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.BtnVolumeValue_OnValueChanged);

            #line default
            #line hidden
                return;

            case 16:

            #line 115 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 17:
                this.PlayLists = ((System.Windows.Controls.ListBox)(target));
                return;

            case 18:
                this.DefaultList = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 19:
                this.LocalList = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 20:
                this.MusicListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 21:
                this.Index = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 22:
                this.Name = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 23:
                this.TimeSpan = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 24:
                this.AddMusic = ((System.Windows.Controls.Button)(target));

            #line 167 "..\..\MainWindow.xaml"
                this.AddMusic.Click += new System.Windows.RoutedEventHandler(this.AddMusic_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Root = ((MikiMusicPlayer.MainWindow)(target));
     return;
     case 3:
     
     #line 60 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 4:
     this.BtnPlayMusic = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\MainWindow.xaml"
     this.BtnPlayMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPlayMusic_OnClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this.BtnPauseMusic = ((System.Windows.Controls.Button)(target));
     
     #line 81 "..\..\MainWindow.xaml"
     this.BtnPauseMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPauseMusic_OnClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.BtnPreviousMusic = ((System.Windows.Controls.Button)(target));
     
     #line 86 "..\..\MainWindow.xaml"
     this.BtnPreviousMusic.Click += new System.Windows.RoutedEventHandler(this.BtnPreviousMusic_OnClick);
     
     #line default
     #line hidden
     return;
     case 7:
     this.NextMusic = ((System.Windows.Controls.Button)(target));
     
     #line 89 "..\..\MainWindow.xaml"
     this.NextMusic.Click += new System.Windows.RoutedEventHandler(this.BtnNextMusic_OnClick);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Sound = ((System.Windows.Controls.Image)(target));
     
     #line 91 "..\..\MainWindow.xaml"
     this.Sound.MouseMove += new System.Windows.Input.MouseEventHandler(this.Sound_OnMouseMove);
     
     #line default
     #line hidden
     return;
     case 9:
     this.BtnProgressValue = ((System.Windows.Controls.Slider)(target));
     return;
     case 10:
     this.MinuteArea = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.SecondArea = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.SoundBorder = ((System.Windows.Controls.Border)(target));
     
     #line 103 "..\..\MainWindow.xaml"
     this.SoundBorder.MouseLeave += new System.Windows.Input.MouseEventHandler(this.SoundBorder_OnMouseLeave);
     
     #line default
     #line hidden
     return;
     case 13:
     this.SoundButton = ((System.Windows.Controls.Button)(target));
     
     #line 105 "..\..\MainWindow.xaml"
     this.SoundButton.Click += new System.Windows.RoutedEventHandler(this.SoundButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 14:
     this.SoundMuteButton = ((System.Windows.Controls.Button)(target));
     
     #line 106 "..\..\MainWindow.xaml"
     this.SoundMuteButton.Click += new System.Windows.RoutedEventHandler(this.SoundMuteButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 15:
     this.BtnVolumeValue = ((System.Windows.Controls.Slider)(target));
     
     #line 107 "..\..\MainWindow.xaml"
     this.BtnVolumeValue.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.BtnVolumeValue_OnValueChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 115 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 17:
     this.PlayLists = ((System.Windows.Controls.ListBox)(target));
     return;
     case 18:
     this.DefaultList = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 19:
     this.LocalList = ((System.Windows.Controls.ListBoxItem)(target));
     return;
     case 20:
     this.MusicListView = ((System.Windows.Controls.ListView)(target));
     return;
     case 21:
     this.Index = ((System.Windows.Controls.GridViewColumn)(target));
     return;
     case 22:
     this.Name = ((System.Windows.Controls.GridViewColumn)(target));
     return;
     case 23:
     this.TimeSpan = ((System.Windows.Controls.GridViewColumn)(target));
     return;
     case 24:
     this.AddMusic = ((System.Windows.Controls.Button)(target));
     
     #line 167 "..\..\MainWindow.xaml"
     this.AddMusic.Click += new System.Windows.RoutedEventHandler(this.AddMusic_OnClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }