示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

            #line 29 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHeadlightChecked);

            #line default
            #line hidden

            #line 29 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnHeadlightUnchecked);

            #line default
            #line hidden
                return;

            case 4:

            #line 30 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnAmbientLightChecked);

            #line default
            #line hidden

            #line 30 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnAmbientLightUnchecked);

            #line default
            #line hidden
                return;

            case 5:

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnWireframeChecked);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnWireframeUnchecked);

            #line default
            #line hidden
                return;

            case 6:
                this._trackport = ((_3DTools.Trackport3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 24 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnOpen);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 26 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnExit);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 29 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnHeadlightChecked);
     
     #line default
     #line hidden
     
     #line 29 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnHeadlightUnchecked);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 30 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnAmbientLightChecked);
     
     #line default
     #line hidden
     
     #line 30 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnAmbientLightUnchecked);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 32 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Checked += new System.Windows.RoutedEventHandler(this.OnWireframeChecked);
     
     #line default
     #line hidden
     
     #line 32 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.OnWireframeUnchecked);
     
     #line default
     #line hidden
     return;
     case 6:
     this._trackport = ((_3DTools.Trackport3D)(target));
     return;
     }
     this._contentLoaded = true;
 }