示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BulkProductLine1 = ((CoreTest.BulkProductLine)(target));

            #line 7 "..\..\..\BulkProductLine.xaml"
                this.BulkProductLine1.Loaded += new System.Windows.RoutedEventHandler(this.HMI_Loaded);

            #line default
            #line hidden

            #line 7 "..\..\..\BulkProductLine.xaml"
                this.BulkProductLine1.Unloaded += new System.Windows.RoutedEventHandler(this.HMI_Unloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.cvs1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.silo1 = ((HMIControl.Silo)(target));
                return;

            case 4:
                this.silo2 = ((HMIControl.Silo)(target));
                return;

            case 5:
                this.silo3 = ((HMIControl.Silo)(target));
                return;

            case 6:
                this.silo4 = ((HMIControl.Silo)(target));
                return;

            case 7:
                this.silo5 = ((HMIControl.Silo)(target));
                return;

            case 8:
                this.silo6 = ((HMIControl.Silo)(target));
                return;

            case 9:
                this.elevator1 = ((HMIControl.Elevator)(target));
                return;

            case 10:
                this.elevator2 = ((HMIControl.Elevator)(target));
                return;

            case 11:
                this.bufferBin1 = ((HMIControl.BufferBin)(target));
                return;

            case 12:
                this.bufferBin2 = ((HMIControl.BufferBin)(target));
                return;

            case 13:
                this.bufferBin3 = ((HMIControl.BufferBin)(target));
                return;

            case 14:
                this.bufferBin4 = ((HMIControl.BufferBin)(target));
                return;

            case 15:
                this.bufferBin5 = ((HMIControl.BufferBin)(target));
                return;

            case 16:
                this.bufferBin6 = ((HMIControl.BufferBin)(target));
                return;

            case 17:
                this.truck1 = ((HMIControl.Truck)(target));
                return;

            case 18:
                this.bucket1 = ((HMIControl.Bucket)(target));
                return;

            case 19:
                this.chainConveyor1 = ((HMIControl.ChainConveyor)(target));
                return;

            case 20:
                this.cyclone1 = ((HMIControl.Cyclone)(target));
                return;

            case 21:
                this.chainConveyor2 = ((HMIControl.ChainConveyor)(target));
                return;

            case 22:
                this.chainConveyor3 = ((HMIControl.ChainConveyor)(target));
                return;

            case 23:
                this.chainConveyor4 = ((HMIControl.ChainConveyor)(target));
                return;

            case 24:
                this.chainConveyor5 = ((HMIControl.ChainConveyor)(target));
                return;

            case 25:
                this.preCleaner1 = ((HMIControl.PreCleaner)(target));
                return;

            case 26:
                this.magnetCleaner1 = ((HMIControl.MagnetCleaner)(target));
                return;

            case 27:
                this.chainConveyor6 = ((HMIControl.ChainConveyor)(target));
                return;

            case 28:
                this.chainConveyor7 = ((HMIControl.ChainConveyor)(target));
                return;

            case 29:
                this.productline = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.alarm1 = ((HMIControl.Alarm)(target));
                return;

            case 31:
                this.fromTo12 = ((HMIControl.FromTo)(target));
                return;

            case 32:
                this.fromTo1 = ((HMIControl.FromTo)(target));
                return;

            case 33:
                this.selectSwitch1 = ((HMIControl.SelectSwitch)(target));
                return;

            case 34:
                this.selectSwitch3 = ((HMIControl.SelectSwitch)(target));
                return;

            case 35:
                this.fromTo2 = ((HMIControl.FromTo)(target));
                return;

            case 36:
                this.fromTo3 = ((HMIControl.FromTo)(target));
                return;

            case 37:
                this.fromTo4 = ((HMIControl.FromTo)(target));
                return;

            case 38:
                this.slideGate1 = ((HMIControl.SlideGate)(target));
                return;

            case 39:
                this.slideGate2 = ((HMIControl.SlideGate)(target));
                return;

            case 40:
                this.slideGate3 = ((HMIControl.SlideGate)(target));
                return;

            case 41:
                this.slideGate4 = ((HMIControl.SlideGate)(target));
                return;

            case 42:
                this.slideGate5 = ((HMIControl.SlideGate)(target));
                return;

            case 43:
                this.slideGate6 = ((HMIControl.SlideGate)(target));
                return;

            case 44:
                this.slideGate7 = ((HMIControl.SlideGate)(target));
                return;

            case 45:
                this.slideGate8 = ((HMIControl.SlideGate)(target));
                return;

            case 46:
                this.slideGate9 = ((HMIControl.SlideGate)(target));
                return;

            case 47:
                this.slideGate10 = ((HMIControl.SlideGate)(target));
                return;

            case 48:
                this.slideGate11 = ((HMIControl.SlideGate)(target));
                return;

            case 49:
                this.slideGate12 = ((HMIControl.SlideGate)(target));
                return;

            case 50:
                this.slideGate13 = ((HMIControl.SlideGate)(target));
                return;

            case 51:
                this.slideGate16 = ((HMIControl.SlideGate)(target));
                return;

            case 52:
                this.slideGate17 = ((HMIControl.SlideGate)(target));
                return;

            case 53:
                this.slideGate18 = ((HMIControl.SlideGate)(target));
                return;

            case 54:
                this.slideGate19 = ((HMIControl.SlideGate)(target));
                return;

            case 55:
                this.slideGate20 = ((HMIControl.SlideGate)(target));
                return;

            case 56:
                this.fromTo5 = ((HMIControl.FromTo)(target));
                return;

            case 57:
                this.divert1 = ((HMIControl.Divert)(target));
                return;

            case 58:
                this.fromTo6 = ((HMIControl.FromTo)(target));
                return;

            case 59:
                this.fromTo7 = ((HMIControl.FromTo)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SiloProductLine1 = ((CoreTest.SiloProductLine)(target));

            #line 7 "..\..\..\SiloProductLine.xaml"
                this.SiloProductLine1.Loaded += new System.Windows.RoutedEventHandler(this.HMI_Loaded);

            #line default
            #line hidden

            #line 7 "..\..\..\SiloProductLine.xaml"
                this.SiloProductLine1.Unloaded += new System.Windows.RoutedEventHandler(this.HMI_Unloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.cvs1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.silo1 = ((HMIControl.Silo)(target));
                return;

            case 4:
                this.silo2 = ((HMIControl.Silo)(target));
                return;

            case 5:
                this.elevator1 = ((HMIControl.Elevator)(target));
                return;

            case 6:
                this.elevator2 = ((HMIControl.Elevator)(target));
                return;

            case 7:
                this.preCleaner1 = ((HMIControl.PreCleaner)(target));
                return;

            case 8:
                this.bucket1 = ((HMIControl.Bucket)(target));
                return;

            case 9:
                this.truck1 = ((HMIControl.Truck)(target));
                return;

            case 10:
                this.chainConveyor1 = ((HMIControl.ChainConveyor)(target));
                return;

            case 11:
                this.magnetCleaner1 = ((HMIControl.MagnetCleaner)(target));
                return;

            case 12:
                this.chainConveyor2 = ((HMIControl.ChainConveyor)(target));
                return;

            case 13:
                this.chainConveyor3 = ((HMIControl.ChainConveyor)(target));
                return;

            case 14:
                this.chainConveyor4 = ((HMIControl.ChainConveyor)(target));
                return;

            case 15:
                this.cyclone1 = ((HMIControl.Cyclone)(target));
                return;

            case 16:
                this.productline = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.fromTo12 = ((HMIControl.FromTo)(target));
                return;

            case 18:
                this.selectSwitch1 = ((HMIControl.SelectSwitch)(target));
                return;

            case 19:
                this.selectSwitch3 = ((HMIControl.SelectSwitch)(target));
                return;

            case 20:
                this.fromTo1 = ((HMIControl.FromTo)(target));
                return;

            case 21:
                this.fromTo2 = ((HMIControl.FromTo)(target));
                return;

            case 22:
                this.fromTo3 = ((HMIControl.FromTo)(target));
                return;

            case 23:
                this.slideGate1 = ((HMIControl.SlideGate)(target));
                return;

            case 24:
                this.slideGate2 = ((HMIControl.SlideGate)(target));
                return;

            case 25:
                this.fromTo4 = ((HMIControl.FromTo)(target));
                return;

            case 26:
                this.fromTo5 = ((HMIControl.FromTo)(target));
                return;

            case 27:
                this.slideGate3 = ((HMIControl.SlideGate)(target));
                return;

            case 28:
                this.cyclone2 = ((HMIControl.Cyclone)(target));
                return;

            case 29:
                this.fromTo6 = ((HMIControl.FromTo)(target));
                return;
            }
            this._contentLoaded = true;
        }