void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SubviewBox = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 2:
                this.SubtitleText = ((RealMediaControlSubtitle.View.SubtitleView)(target));
                return;

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

            case 4:
                this.mediacontrol = ((VideoPlayer.MediaController)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mediaControl = ((VideoPlayer.MediaController)(target));
                return;

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

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

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

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

            #line 660 "..\..\..\View\MediaController.xaml"
                this.PlNext.ToolTipClosing += new System.Windows.Controls.ToolTipEventHandler(this.PlNext_ToolTipClosing);

            #line default
            #line hidden

            #line 661 "..\..\..\View\MediaController.xaml"
                this.PlNext.MouseEnter += new System.Windows.Input.MouseEventHandler(this.PlNext_MouseEnter);

            #line default
            #line hidden

            #line 661 "..\..\..\View\MediaController.xaml"
                this.PlNext.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Previous_MouseLeave);

            #line default
            #line hidden
                return;

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

            #line 759 "..\..\..\View\MediaController.xaml"
                this.Previous.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Previous_MouseEnter);

            #line default
            #line hidden

            #line 759 "..\..\..\View\MediaController.xaml"
                this.Previous.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Previous_MouseLeave);

            #line default
            #line hidden

            #line 760 "..\..\..\View\MediaController.xaml"
                this.Previous.ToolTipClosing += new System.Windows.Controls.ToolTipEventHandler(this.PlNext_ToolTipClosing);

            #line default
            #line hidden
                return;

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

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

            case 9:
                this.volCtrl = ((VideoPlayer.VolumeControl)(target));
                return;

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

            case 11:
                this.MovieBoard = ((VideoPlayer.MovieTitle_Tab)(target));
                return;

            case 12:
                this.lcSlider = ((System.Windows.Controls.Slider)(target));

            #line 958 "..\..\..\View\MediaController.xaml"
                this.lcSlider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.PositionSlider_DragCompleted));

            #line default
            #line hidden

            #line 959 "..\..\..\View\MediaController.xaml"
                this.lcSlider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.PositionSlider_DragStarted));

            #line default
            #line hidden

            #line 960 "..\..\..\View\MediaController.xaml"
                this.lcSlider.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PositionSlider_PreviewMouseDown);

            #line default
            #line hidden

            #line 961 "..\..\..\View\MediaController.xaml"
                this.lcSlider.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PositionSlider_PreviewMouseDown);

            #line default
            #line hidden

            #line 962 "..\..\..\View\MediaController.xaml"
                this.lcSlider.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.PositionSlider_MouseUp);

            #line default
            #line hidden

            #line 963 "..\..\..\View\MediaController.xaml"
                this.lcSlider.MouseMove += new System.Windows.Input.MouseEventHandler(this.PositionSlider_MouseMove);

            #line default
            #line hidden

            #line 964 "..\..\..\View\MediaController.xaml"
                this.lcSlider.MouseEnter += new System.Windows.Input.MouseEventHandler(this.PositionSlider_MouseEnter);

            #line default
            #line hidden

            #line 965 "..\..\..\View\MediaController.xaml"
                this.lcSlider.MouseLeave += new System.Windows.Input.MouseEventHandler(this.PositionSlider_MouseLeave);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }