Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.main = ((_3DPrinter.MainWindow)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.main.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 7:
                this.body = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.threedview1 = ((_3DPrinter.view.ThreeD.ThreeDControl)(target));
                return;

            case 9:
                this.topList = ((_3DPrinter.view.menu.MenuApp)(target));
                return;

            case 10:
                this.expander2 = ((System.Windows.Controls.Expander)(target));
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden
                return;

            case 14:

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

            #line default
            #line hidden
                return;

            case 15:

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

            #line default
            #line hidden
                return;

            case 16:

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

            #line default
            #line hidden
                return;

            case 17:
                this.modelListView1 = ((System.Windows.Controls.ListView)(target));

            #line 1241 "..\..\MainWindow.xaml"
                this.modelListView1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Selector_OnSelected);

            #line default
            #line hidden

            #line 1241 "..\..\MainWindow.xaml"
                this.modelListView1.Initialized += new System.EventHandler(this.ModelListView1_OnInitialized);

            #line default
            #line hidden

            #line 1241 "..\..\MainWindow.xaml"
                this.modelListView1.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.ModelListView1_OnIsVisibleChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.BorderTest2 = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 1286 "..\..\MainWindow.xaml"
                this.LandButton.Click += new System.Windows.RoutedEventHandler(this.Land_OnClick);

            #line default
            #line hidden
                return;

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

            #line 1287 "..\..\MainWindow.xaml"
                this.FitButton.Click += new System.Windows.RoutedEventHandler(this.Fit_OnClick);

            #line default
            #line hidden
                return;

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

            #line 1288 "..\..\MainWindow.xaml"
                this.CentrerButton.Click += new System.Windows.RoutedEventHandler(this.CentrerButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 1289 "..\..\MainWindow.xaml"
                this.AutoPositionButton.Click += new System.Windows.RoutedEventHandler(this.AutoPositionButton_OnClick);

            #line default
            #line hidden
                return;

            case 24:

            #line 1294 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Visible_OnClick);

            #line default
            #line hidden
                return;

            case 25:
                this.moveToggle = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 1295 "..\..\MainWindow.xaml"
                this.moveToggle.Click += new System.Windows.RoutedEventHandler(this.MoveToggleButton_OnChecked);

            #line default
            #line hidden
                return;

            case 26:
                this.scaleToggle = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 1296 "..\..\MainWindow.xaml"
                this.scaleToggle.Click += new System.Windows.RoutedEventHandler(this.ScaleToggleButton_OnChecked);

            #line default
            #line hidden
                return;

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

            #line 1297 "..\..\MainWindow.xaml"
                this.rotateToggle.Click += new System.Windows.RoutedEventHandler(this.RotateToggleButton_OnChecked);

            #line default
            #line hidden
                return;

            case 28:
                this.movePanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:

            #line 1315 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 30:

            #line 1316 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 31:

            #line 1317 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 32:
                this.rotatePanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.rotateX = ((System.Windows.Controls.TextBox)(target));

            #line 1337 "..\..\MainWindow.xaml"
                this.rotateX.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.rotateY = ((System.Windows.Controls.TextBox)(target));

            #line 1338 "..\..\MainWindow.xaml"
                this.rotateY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 35:
                this.rotateZ = ((System.Windows.Controls.TextBox)(target));

            #line 1339 "..\..\MainWindow.xaml"
                this.rotateZ.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBase_OnTextChanged);

            #line default
            #line hidden
                return;

            case 36:

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

            #line default
            #line hidden
                return;

            case 37:

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

            #line default
            #line hidden
                return;

            case 38:

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

            #line default
            #line hidden
                return;

            case 39:
                this.scalePanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 40:

            #line 1364 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBaseScale_OnTextChanged);

            #line default
            #line hidden
                return;

            case 41:

            #line 1365 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBaseScale_OnTextChanged);

            #line default
            #line hidden
                return;

            case 42:

            #line 1366 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxBaseScale_OnTextChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.scaleLock = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 44:
                this.expander3 = ((System.Windows.Controls.Expander)(target));
                return;

            case 45:

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

            #line default
            #line hidden
                return;

            case 46:
                this.rangeSlider1 = ((_3DPrinter.view.controls.RangeSlider)(target));
                return;

            case 47:
                this.codeEditor = ((_3DPrinter.view.editor.CodeEditor)(target));
                return;

            case 48:
                this.expander1 = ((System.Windows.Controls.Expander)(target));
                return;

            case 49:
                this.newProject = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 50:
                this.openProject = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 51:
                this.addModel = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 52:
                this.loadCode = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 53:
                this.saveProject = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 54:
                this.exit = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 55:
                this.BorderTest = ((System.Windows.Controls.Border)(target));
                return;

            case 56:
                this.recentList = ((System.Windows.Controls.ListView)(target));
                return;

            case 57:
                this.Border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 58:
                this.settings = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 59:
                this.about = ((_3DPrinter.view.menu.ButtonExt)(target));
                return;

            case 60:
                this.toasterGrid = ((System.Windows.Controls.Border)(target));
                return;

            case 61:
                this.toaster = ((_3DPrinter.view.notification.ToasterControl)(target));
                return;
            }
            this._contentLoaded = true;
        }