Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.elemVA = ((SPAControls.Digital)(target));
                return;

            case 2:
                this.elemVB = ((SPAControls.Digital)(target));
                return;

            case 3:
                this.elemVC = ((SPAControls.Digital)(target));
                return;

            case 4:
                this.elemCA = ((SPAControls.Digital)(target));
                return;

            case 5:
                this.elemCB = ((SPAControls.Digital)(target));
                return;

            case 6:
                this.elemCC = ((SPAControls.Digital)(target));
                return;

            case 7:
                this.elemPA = ((SPAControls.Digital)(target));
                return;

            case 8:
                this.elemPB = ((SPAControls.Digital)(target));
                return;

            case 9:
                this.elemPC = ((SPAControls.Digital)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.elemTank1L = ((SPAControls.LevelV)(target));
                return;

            case 2:
                this.elemTank1P = ((SPAControls.Digital)(target));
                return;

            case 3:
                this.elemTank1F = ((SPAControls.Boolean)(target));
                return;

            case 4:
                this.elemTank2L = ((SPAControls.LevelV)(target));
                return;

            case 5:
                this.elemTank2P = ((SPAControls.Digital)(target));
                return;

            case 6:
                this.elemTank2F = ((SPAControls.Boolean)(target));
                return;

            case 7:
                this.elemTank3L = ((SPAControls.LevelV)(target));
                return;

            case 8:
                this.elemTank3P = ((SPAControls.Digital)(target));
                return;

            case 9:
                this.elemTank3F = ((SPAControls.Boolean)(target));
                return;

            case 10:
                this.elemTank4L = ((SPAControls.LevelV)(target));
                return;

            case 11:
                this.elemTank4P = ((SPAControls.Digital)(target));
                return;

            case 12:
                this.elemTank4F = ((SPAControls.Boolean)(target));
                return;

            case 13:
                this.elemTank5L = ((SPAControls.LevelV)(target));
                return;

            case 14:
                this.elemTank5P = ((SPAControls.Digital)(target));
                return;

            case 15:
                this.elemTank5F = ((SPAControls.Boolean)(target));
                return;

            case 16:
                this.elemTank6L = ((SPAControls.LevelV)(target));
                return;

            case 17:
                this.elemTank6P = ((SPAControls.Digital)(target));
                return;

            case 18:
                this.elemTank6F = ((SPAControls.Boolean)(target));
                return;

            case 19:
                this.elemTank7L = ((SPAControls.LevelV)(target));
                return;

            case 20:
                this.elemTank7P = ((SPAControls.Digital)(target));
                return;

            case 21:
                this.elemTank7F = ((SPAControls.Boolean)(target));
                return;

            case 22:
                this.elemTank8L = ((SPAControls.LevelV)(target));
                return;

            case 23:
                this.elemTank8P = ((SPAControls.Digital)(target));
                return;

            case 24:
                this.elemTank8F = ((SPAControls.Boolean)(target));
                return;
            }
            this._contentLoaded = true;
        }