示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PlaylistView = ((MyWindowsMediaPlayer.View.PlaylistView)(target));
                return;

            case 2:
                this.ScreenView = ((MyWindowsMediaPlayer.View.ScreenView)(target));
                return;

            case 3:
                this.ControlView = ((MyWindowsMediaPlayer.View.ControlView)(target));
                return;

            case 4:
                this.ExplorerView = ((MyWindowsMediaPlayer.View.ExplorerView)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.PlaylistView = ((MyWindowsMediaPlayer.View.PlaylistView)(target));
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:
                this.ExplorerView = ((MyWindowsMediaPlayer.View.ExplorerView)(target));
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:
                this.ScreenView = ((MyWindowsMediaPlayer.View.ScreenView)(target));
                return;

            case 11:
                this.ControlView = ((MyWindowsMediaPlayer.View.ControlView)(target));
                return;
            }
            this._contentLoaded = true;
        }