Beispiel #1
0
        public void BindAsProxy(int slotNumber, ItemRepresentation itemRep)
        {
            switch (slotNumber)
            {
            case 0:
            {
                itemRep.BindModAsProxy(ref this.a);
                break;
            }

            case 1:
            {
                itemRep.BindModAsProxy(ref this.b);
                break;
            }

            case 2:
            {
                itemRep.BindModAsProxy(ref this.c);
                break;
            }

            case 3:
            {
                itemRep.BindModAsProxy(ref this.d);
                break;
            }

            case 4:
            {
                itemRep.BindModAsProxy(ref this.e);
                break;
            }

            default:
            {
                throw new IndexOutOfRangeException();
            }
            }
        }