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

            case 2:
                this.LineLeftTopFirst = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 3:
                this.switchTopLeft = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 4:
                this.switchBottomLeft = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 5:
                this.LineLeftBottomLeft = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 6:
                this.LineLeftTopSecond = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 7:
                this.LineBottomSecond = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 8:
                this.switchBottomRight = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 9:
                this.switchTopRight = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 10:
                this.lampLeft = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 11:
                this.lampRight = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 12:
                this.LineBottomSecond_Copy = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 13:
                this.tc1 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 14:
                this.tc2 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 15:
                this.tc3 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 16:
                this.tc4 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 17:
                this.tc5 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 18:
                this.tc6 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 19:
                this.tc7 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 20:
                this.tc8 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 21:
                this.LineTopThird_Copy11 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 22:
                this.LineBottomSecond_Copy1 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 23:
                this.tc7_Copy = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 24:
                this.pm14 = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 25:
                this.pm15 = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 26:
                this.tc7_Copy1 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 27:
                this.tc7_Copy2 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 28:
                this.tc7_Copy3 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 29:
                this.LineTopThird_Copy = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 30:
                this.LineTopThird_Copy2 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 31:
                this.LineTopThird_Copy3 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 32:
                this.LineTopThird_Copy4 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 33:
                this.LineTopThird_Copy5 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 34:
                this.LineTopThird_Copy6 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 35:
                this.LineTopThird_Copy7 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 36:
                this.LineTopThird_Copy8 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 37:
                this.LineTopThird_Copy9 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 38:
                this.LineTopThird_Copy10 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 39:
                this.txt1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.txt2 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 133 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.LineBottomSecond_Copy2 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 43:
                this.LineBottomSecond_Copy3 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 44:
                this.tc7_Copy4 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 45:
                this.tc7_Copy5 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 46:
                this.tc7_Copy6 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 47:
                this.pm13_Copy1 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 48:
                this.LineBottomSecond_Copy5 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 49:
                this.tc7_Copy7 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 50:
                this.pm13_Copy3 = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 51:
                this.LineBottomSecond_Copy6 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 52:
                this.tc7_Copy8 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 53:
                this.pm13_Copy = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UICanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.LineLeftTopFirst = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 3:
                this.switchTopLeft = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 4:
                this.switchBottomLeft = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 5:
                this.LineLeftBottomLeft = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 6:
                this.LineLeftTopSecond = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 7:
                this.LineBottomSecond = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 8:
                this.switchBottomRight = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 9:
                this.switchTopRight = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 10:
                this.LineFirstBottom = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 11:
                this.tc20 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 12:
                this.LineFirstTop = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 13:
                this.tc16line15 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 14:
                this.pm7 = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 15:
                this.pm8 = ((KayseriScada.UserControls.SwitchPointUC)(target));
                return;

            case 16:
                this.tc15 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 17:
                this.tc16 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 18:
                this.a8Line1 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 19:
                this.a7Line1 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 20:
                this.a6Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 21:
                this.a5Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 22:
                this.a8Line2 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 23:
                this.a4Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 24:
                this.a3Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 25:
                this.a1Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 26:
                this.tc18line16 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 27:
                this.tc8Line11 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 28:
                this.tc5Line7 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 29:
                this.tc11Line13 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 30:
                this.tc7Line8 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 31:
                this.tc3Line5 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 32:
                this.tc2Line3 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 33:
                this.a2Line = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 34:
                this.tc1Line3 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 35:
                this.a7Line2 = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 36:
                this.tc1 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 37:
                this.tc2 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 38:
                this.tc4 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 39:
                this.tc6 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 40:
                this.tc9 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 41:
                this.tc10 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 42:
                this.tc12 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 43:
                this.tc14 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 44:
                this.pm6 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 45:
                this.pm5 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 46:
                this.pm4 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 47:
                this.pm3 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 48:
                this.pm2 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 49:
                this.pm1 = ((KayseriScada.UserControls.SPLeft)(target));
                return;

            case 50:
                this.tc11 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 51:
                this.tc17 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 52:
                this.tc18 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 53:
                this.tc3 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 54:
                this.tc5 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 55:
                this.tc7 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 56:
                this.tc13 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 57:
                this.tc8 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 58:
                this.sl1 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 59:
                this.sl2 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 60:
                this.sl3 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 61:
                this.sl4 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 62:
                this.sl5 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 63:
                this.sl6 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 64:
                this.sl7 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 65:
                this.sl8 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 66:
                this.sl9 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 67:
                this.sl10 = ((KayseriScada.UserControls.RailLampUC)(target));
                return;

            case 68:
                this.txt1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 69:
                this.txt2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 70:
                this.btnpm2 = ((System.Windows.Controls.Button)(target));

            #line 447 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnpm2.Click += new System.Windows.RoutedEventHandler(this.btnpm2_Click);

            #line default
            #line hidden
                return;

            case 71:
                this.btnStart_Copy = ((System.Windows.Controls.Button)(target));

            #line 448 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnStart_Copy.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click);

            #line default
            #line hidden
                return;

            case 72:
                this.txtByte1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 73:
                this.txtByte0 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 74:
                this.btnenergy1 = ((System.Windows.Controls.Button)(target));

            #line 454 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnenergy1.Click += new System.Windows.RoutedEventHandler(this.btnenergy1_Click);

            #line default
            #line hidden
                return;

            case 75:
                this.txtByte3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 76:
                this.txtByte2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 77:
                this.btnenergy2 = ((System.Windows.Controls.Button)(target));

            #line 459 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnenergy2.Click += new System.Windows.RoutedEventHandler(this.btnenergy2_Click_1);

            #line default
            #line hidden
                return;

            case 78:
                this.txtbyte11 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 79:
                this.txtbyte12 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 80:
                this.txtbyte13 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 81:
                this.btnbyte11 = ((System.Windows.Controls.Button)(target));

            #line 463 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnbyte11.Click += new System.Windows.RoutedEventHandler(this.btnbyte11_Click);

            #line default
            #line hidden
                return;

            case 82:
                this.txtbyte6 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 83:
                this.txtbyte7 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 84:
                this.txtbyte8 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 85:
                this.txtbyte9 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 86:
                this.txtbyte10 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 87:
                this.btnLamp = ((System.Windows.Controls.Button)(target));

            #line 470 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnLamp.Click += new System.Windows.RoutedEventHandler(this.btnLamp_Click);

            #line default
            #line hidden
                return;

            case 88:
                this.txtbyte26 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 89:
                this.dataGridView = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 90:
                this.tc19 = ((KayseriScada.UserControls.TrackCircuitUC)(target));
                return;

            case 91:
                this.LineFirstTop_Copy = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 92:
                this.lineFirstBottom_Copy = ((KayseriScada.UserControls.LineUC)(target));
                return;

            case 93:
                this.txtRoute = ((System.Windows.Controls.TextBox)(target));
                return;

            case 94:
                this.btnRouteRequest = ((System.Windows.Controls.Button)(target));

            #line 521 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnRouteRequest.Click += new System.Windows.RoutedEventHandler(this.btnRouteRequest_Click);

            #line default
            #line hidden
                return;

            case 95:
                this.txtRoute2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 96:
                this.btnRoute2 = ((System.Windows.Controls.Button)(target));

            #line 523 "..\..\..\UserControls\DrawingUI.xaml"
                this.btnRoute2.Click += new System.Windows.RoutedEventHandler(this.btnRoute2_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }