예제 #1
0
        public void BindAsLocal(int slotNumber, ref ModViewModelAddArgs args, ItemRepresentation itemRep)
        {
            switch (slotNumber)
            {
            case 0:
            {
                itemRep.BindModAsLocal(ref this.a, ref args);
                break;
            }

            case 1:
            {
                itemRep.BindModAsLocal(ref this.b, ref args);
                break;
            }

            case 2:
            {
                itemRep.BindModAsLocal(ref this.c, ref args);
                break;
            }

            case 3:
            {
                itemRep.BindModAsLocal(ref this.d, ref args);
                break;
            }

            case 4:
            {
                itemRep.BindModAsLocal(ref this.e, ref args);
                break;
            }

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