示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.openButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.openButton.Click += new System.Windows.RoutedEventHandler(this.openButton_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.saveButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.saveButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 80 "..\..\MainWindow.xaml"
                this.exportButton.Click += new System.Windows.RoutedEventHandler(this.exportButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.assemblyTreeView1 = ((devDept.CustomControls.AssemblyTreeView)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.assemblyTreeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.assemblyTreeView1_KeyDown);

            #line default
            #line hidden
                return;

            case 6:
                this.splitContainer1 = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 7:
                this.turboCheckBox = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.turboCheckBox.Click += new System.Windows.RoutedEventHandler(this.turboCheckBox_CheckedChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.operatingModeComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.operatingModeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.operatingModeComboBox_SelectedIndexChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.lagLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.chkLeafSelection = ((System.Windows.Controls.CheckBox)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.chkLeafSelection.Click += new System.Windows.RoutedEventHandler(this.leafSelCheckBox_CheckedChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.model1 = ((WpfApplication1.MyModel)(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"
                ((WpfApplication1.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.mainStatusLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.rendererVersionStatusLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.selectedCountStatusLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.addedCountStatusLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.removedCountStatusLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.rightPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            #line 88 "..\..\MainWindow.xaml"
                this.pointButton.Click += new System.Windows.RoutedEventHandler(this.pointButton_OnClick);

            #line default
            #line hidden
                return;

            case 9:
                this.lineButton = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.plineButton = ((System.Windows.Controls.Button)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.plineButton.Click += new System.Windows.RoutedEventHandler(this.plineButton_OnClick);

            #line default
            #line hidden
                return;

            case 11:
                this.circleButton = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.circleButton.Click += new System.Windows.RoutedEventHandler(this.circleButton_OnClick);

            #line default
            #line hidden
                return;

            case 12:
                this.arcButton = ((System.Windows.Controls.Button)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.arcButton.Click += new System.Windows.RoutedEventHandler(this.arcButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 94 "..\..\MainWindow.xaml"
                this.splineButton.Click += new System.Windows.RoutedEventHandler(this.splineButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\MainWindow.xaml"
                this.ellipseButton.Click += new System.Windows.RoutedEventHandler(this.ellipseButton_OnClick);

            #line default
            #line hidden
                return;

            case 15:
                this.ellipticalArcButton = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.ellipticalArcButton.Click += new System.Windows.RoutedEventHandler(this.ellipticalArcButton_OnClick);

            #line default
            #line hidden
                return;

            case 16:
                this.compositeCurveButton = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\MainWindow.xaml"
                this.compositeCurveButton.Click += new System.Windows.RoutedEventHandler(this.compositeCurveButton_OnClick);

            #line default
            #line hidden
                return;

            case 17:
                this.textButton = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.textButton.Click += new System.Windows.RoutedEventHandler(this.textButton_OnClick);

            #line default
            #line hidden
                return;

            case 18:
                this.tangentsButton = ((System.Windows.Controls.Button)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.tangentsButton.Click += new System.Windows.RoutedEventHandler(this.tangentsButton_OnClick);

            #line default
            #line hidden
                return;

            case 19:
                this.linearDimButton = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 20:
                this.alignedDimButton = ((System.Windows.Controls.Button)(target));

            #line 107 "..\..\MainWindow.xaml"
                this.alignedDimButton.Click += new System.Windows.RoutedEventHandler(this.alignedDimButton_OnClick);

            #line default
            #line hidden
                return;

            case 21:
                this.radialDimButton = ((System.Windows.Controls.Button)(target));

            #line 108 "..\..\MainWindow.xaml"
                this.radialDimButton.Click += new System.Windows.RoutedEventHandler(this.radialDimButton_OnClick);

            #line default
            #line hidden
                return;

            case 22:
                this.diametricDimButton = ((System.Windows.Controls.Button)(target));

            #line 109 "..\..\MainWindow.xaml"
                this.diametricDimButton.Click += new System.Windows.RoutedEventHandler(this.diametricDimButton_OnClick);

            #line default
            #line hidden
                return;

            case 23:
                this.angularDimButton = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\MainWindow.xaml"
                this.angularDimButton.Click += new System.Windows.RoutedEventHandler(this.angularDimButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 112 "..\..\MainWindow.xaml"
                this.ordinateHorizontalButton.Click += new System.Windows.RoutedEventHandler(this.ordinateHorizontalButton_OnClick);

            #line default
            #line hidden
                return;

            case 25:
                this.ordinateVerticalButton = ((System.Windows.Controls.Button)(target));

            #line 113 "..\..\MainWindow.xaml"
                this.ordinateVerticalButton.Click += new System.Windows.RoutedEventHandler(this.ordinateVerticalButton_OnClick);

            #line default
            #line hidden
                return;

            case 26:
                this.leaderButton = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.leaderButton.Click += new System.Windows.RoutedEventHandler(this.leaderButton_OnClick);

            #line default
            #line hidden
                return;

            case 27:
                this.objectSnapCheckBox = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 125 "..\..\MainWindow.xaml"
                this.objectSnapCheckBox.Click += new System.Windows.RoutedEventHandler(this.objectSnapCheckBox_OnClick);

            #line default
            #line hidden
                return;

            case 28:
                this.gridSnapCheckBox = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 126 "..\..\MainWindow.xaml"
                this.gridSnapCheckBox.Click += new System.Windows.RoutedEventHandler(this.gridSnapCheckBox_OnClick);

            #line default
            #line hidden
                return;

            case 29:
                this.snapPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 30:
                this.endRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 31:
                this.midRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 32:
                this.cenRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 33:
                this.quadRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 34:
                this.pointRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 35:
                this.showOriginButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.showOriginButton.Click += new System.Windows.RoutedEventHandler(this.showOriginButton_OnClick);

            #line default
            #line hidden
                return;

            case 36:
                this.showExtentsButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.showExtentsButton.Click += new System.Windows.RoutedEventHandler(this.showExtentsButton_OnClick);

            #line default
            #line hidden
                return;

            case 37:
                this.showVerticesButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 143 "..\..\MainWindow.xaml"
                this.showVerticesButton.Click += new System.Windows.RoutedEventHandler(this.showVerticesButton_OnClick);

            #line default
            #line hidden
                return;

            case 38:
                this.showGridButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 144 "..\..\MainWindow.xaml"
                this.showGridButton.Click += new System.Windows.RoutedEventHandler(this.showGridButton_OnClick);

            #line default
            #line hidden
                return;

            case 39:
                this.selectionComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 149 "..\..\MainWindow.xaml"
                this.selectionComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.selectionComboBox_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 40:
                this.selectCheckBox = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 157 "..\..\MainWindow.xaml"
                this.selectCheckBox.Click += new System.Windows.RoutedEventHandler(this.selectCheckBox_OnClick);

            #line default
            #line hidden
                return;

            case 41:
                this.clearSelectionButton = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\MainWindow.xaml"
                this.clearSelectionButton.Click += new System.Windows.RoutedEventHandler(this.clearSelectionButton_OnClick);

            #line default
            #line hidden
                return;

            case 42:
                this.invertSelectionButton = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\MainWindow.xaml"
                this.invertSelectionButton.Click += new System.Windows.RoutedEventHandler(this.invertSelectionButton_OnClick);

            #line default
            #line hidden
                return;

            case 43:
                this.groupButton = ((System.Windows.Controls.Button)(target));

            #line 160 "..\..\MainWindow.xaml"
                this.groupButton.Click += new System.Windows.RoutedEventHandler(this.groupButton_OnClick);

            #line default
            #line hidden
                return;

            case 44:
                this.deleteButton = ((System.Windows.Controls.Button)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.deleteButton.Click += new System.Windows.RoutedEventHandler(this.deleteButton_OnClick);

            #line default
            #line hidden
                return;

            case 45:
                this.explodeButton = ((System.Windows.Controls.Button)(target));

            #line 171 "..\..\MainWindow.xaml"
                this.explodeButton.Click += new System.Windows.RoutedEventHandler(this.explodeButton_OnClick);

            #line default
            #line hidden
                return;

            case 46:
                this.mirrorButton = ((System.Windows.Controls.Button)(target));

            #line 172 "..\..\MainWindow.xaml"
                this.mirrorButton.Click += new System.Windows.RoutedEventHandler(this.mirrorButton_OnClick);

            #line default
            #line hidden
                return;

            case 47:
                this.offsetButton = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\MainWindow.xaml"
                this.offsetButton.Click += new System.Windows.RoutedEventHandler(this.offsetButton_OnClick);

            #line default
            #line hidden
                return;

            case 48:
                this.trimButton = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.trimButton.Click += new System.Windows.RoutedEventHandler(this.trimButton_OnClick);

            #line default
            #line hidden
                return;

            case 49:
                this.extendButton = ((System.Windows.Controls.Button)(target));

            #line 176 "..\..\MainWindow.xaml"
                this.extendButton.Click += new System.Windows.RoutedEventHandler(this.extendButton_OnClick);

            #line default
            #line hidden
                return;

            case 50:
                this.filletButton = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\MainWindow.xaml"
                this.filletButton.Click += new System.Windows.RoutedEventHandler(this.filletButton_OnClick);

            #line default
            #line hidden
                return;

            case 51:
                this.chamferButton = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.chamferButton.Click += new System.Windows.RoutedEventHandler(this.chamferButton_OnClick);

            #line default
            #line hidden
                return;

            case 52:
                this.moveButton = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\MainWindow.xaml"
                this.moveButton.Click += new System.Windows.RoutedEventHandler(this.moveButton_OnClick);

            #line default
            #line hidden
                return;

            case 53:
                this.rotateButton = ((System.Windows.Controls.Button)(target));

            #line 181 "..\..\MainWindow.xaml"
                this.rotateButton.Click += new System.Windows.RoutedEventHandler(this.rotateButton_OnClick);

            #line default
            #line hidden
                return;

            case 54:
                this.scaleButton = ((System.Windows.Controls.Button)(target));

            #line 182 "..\..\MainWindow.xaml"
                this.scaleButton.Click += new System.Windows.RoutedEventHandler(this.scaleButton_OnClick);

            #line default
            #line hidden
                return;

            case 55:
                this.filletTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 186 "..\..\MainWindow.xaml"
                this.filletTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.filletTextBox_OnTextChanged);

            #line default
            #line hidden
                return;

            case 56:
                this.pickVertexButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 192 "..\..\MainWindow.xaml"
                this.pickVertexButton.Click += new System.Windows.RoutedEventHandler(this.pickVertexButton_OnClick);

            #line default
            #line hidden
                return;

            case 57:
                this.areaButton = ((System.Windows.Controls.Button)(target));

            #line 193 "..\..\MainWindow.xaml"
                this.areaButton.Click += new System.Windows.RoutedEventHandler(this.areaButton_OnClick);

            #line default
            #line hidden
                return;

            case 58:
                this.dumpButton = ((System.Windows.Controls.Button)(target));

            #line 194 "..\..\MainWindow.xaml"
                this.dumpButton.Click += new System.Windows.RoutedEventHandler(this.dumpButton_OnClick);

            #line default
            #line hidden
                return;

            case 59:
                this.showCurveDirectionButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.showCurveDirectionButton.Checked += new System.Windows.RoutedEventHandler(this.showCurveDirectionButton_CheckedChanged);

            #line default
            #line hidden

            #line 195 "..\..\MainWindow.xaml"
                this.showCurveDirectionButton.Unchecked += new System.Windows.RoutedEventHandler(this.showCurveDirectionButton_CheckedChanged);

            #line default
            #line hidden
                return;

            case 60:
                this.vectorCopyToClipbardButton = ((System.Windows.Controls.Button)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.vectorCopyToClipbardButton.Click += new System.Windows.RoutedEventHandler(this.vectorCopyToClipbardButton_OnClick);

            #line default
            #line hidden
                return;

            case 61:
                this.vectorSaveButton = ((System.Windows.Controls.Button)(target));

            #line 201 "..\..\MainWindow.xaml"
                this.vectorSaveButton.Click += new System.Windows.RoutedEventHandler(this.vectorSaveButton_OnClick);

            #line default
            #line hidden
                return;

            case 62:
                this.printPreviewButton = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.printPreviewButton.Click += new System.Windows.RoutedEventHandler(this.printPreviewButton_OnClick);

            #line default
            #line hidden
                return;

            case 63:
                this.printButton = ((System.Windows.Controls.Button)(target));

            #line 203 "..\..\MainWindow.xaml"
                this.printButton.Click += new System.Windows.RoutedEventHandler(this.printButton_OnClick);

            #line default
            #line hidden
                return;

            case 64:
                this.pageSetupButton = ((System.Windows.Controls.Button)(target));

            #line 205 "..\..\MainWindow.xaml"
                this.pageSetupButton.Click += new System.Windows.RoutedEventHandler(this.pageSetupButton_OnClick);

            #line default
            #line hidden
                return;

            case 65:
                this.openButton = ((System.Windows.Controls.Button)(target));

            #line 210 "..\..\MainWindow.xaml"
                this.openButton.Click += new System.Windows.RoutedEventHandler(this.openButton_OnClick);

            #line default
            #line hidden
                return;

            case 66:
                this.saveButton = ((System.Windows.Controls.Button)(target));

            #line 211 "..\..\MainWindow.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.saveButton_OnClick);

            #line default
            #line hidden
                return;

            case 67:
                this.importButton = ((System.Windows.Controls.Button)(target));

            #line 212 "..\..\MainWindow.xaml"
                this.importButton.Click += new System.Windows.RoutedEventHandler(this.importButton_OnClick);

            #line default
            #line hidden
                return;

            case 68:
                this.exportButton = ((System.Windows.Controls.Button)(target));

            #line 213 "..\..\MainWindow.xaml"
                this.exportButton.Click += new System.Windows.RoutedEventHandler(this.exportButton_OnClick);

            #line default
            #line hidden
                return;

            case 69:
                this.websiteButton = ((System.Windows.Controls.Button)(target));

            #line 214 "..\..\MainWindow.xaml"
                this.websiteButton.Click += new System.Windows.RoutedEventHandler(this.websiteButton_OnClick);

            #line default
            #line hidden
                return;

            case 70:
                this.turboButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 215 "..\..\MainWindow.xaml"
                this.turboButton.Checked += new System.Windows.RoutedEventHandler(this.turboButton_Checked);

            #line default
            #line hidden

            #line 215 "..\..\MainWindow.xaml"
                this.turboButton.Unchecked += new System.Windows.RoutedEventHandler(this.turboButton_Unchecked);

            #line default
            #line hidden
                return;

            case 71:
                this.tableTabControl = ((devDept.CustomControls.TableTabControl)(target));
                return;

            case 72:
                this.model1 = ((WpfApplication1.MyModel)(target));
                return;

            case 73:
                this.button = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
 public MyMesh(MyModel vp, Mesh other)
     : base(other)
 {
     this.vp = vp;
 }