Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((PZ3.MainWindow)(target));
                return;

            case 2:
                this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.scrollViewer.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.scrollViewer_MouseDoubleClick);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.scrollViewer.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.scrollViewer_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.scrollViewer.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.scrollViewer_PreviewMouseMove);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.scrollViewer.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.scrollViewer_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.scrollViewer.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.scrollViewer_PreviewMouseWheel);

            #line default
            #line hidden
                return;

            case 3:
                this.myCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.path = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.mainScreen = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mw = ((PZ3.MainWindow)(target));
                return;

            case 2:
                this.viewPort = ((System.Windows.Controls.Viewport3D)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.viewPort.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.viewPort_MouseDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.viewPort.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Viewport3D_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.viewPort.MouseMove += new System.Windows.Input.MouseEventHandler(this.viewPort_MouseMove);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.viewPort.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.viewPort_MouseUp);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.viewPort.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.viewPort_MouseWheel);

            #line default
            #line hidden
                return;

            case 3:
                this.translacija = ((System.Windows.Media.Media3D.TranslateTransform3D)(target));
                return;

            case 4:
                this.skaliranje = ((System.Windows.Media.Media3D.ScaleTransform3D)(target));
                return;

            case 5:
                this.rotateY = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
                return;

            case 6:
                this.rotateX = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
                return;

            case 7:
                this.modelGroup = ((System.Windows.Media.Media3D.Model3DGroup)(target));
                return;

            case 8:
                this.ground = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 9:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;
            }
            this._contentLoaded = true;
        }