コード例 #1
0
        private void dropItem_LevelObtainedChanged(DropSlot slot, API.Serialization.Interfaces.IRiotDroppable drop,
                                                   int level)
        {
            int index = this.itemDrops.ToList().IndexOf(slot);

            this.Model.Build.SetItemLevel(index, level);
        }
コード例 #2
0
        private void dropItem_DropOccurred(DropSlot slot, API.Serialization.Interfaces.IRiotDroppable drop)
        {
            int      index = this.itemDrops.ToList().IndexOf(slot);
            ItemInfo item  = drop as ItemInfo;

            this.Model.Build.SetItem(index, item);
        }
コード例 #3
0
        private void DropSlot_DropOccurred(DropSlot slot, API.Serialization.Interfaces.IRiotDroppable drop)
        {
            int      index    = this.dropSlots.IndexOf(slot);
            ItemInfo old_item = this.BuySet.GetItemAt(index);

            old_item.PricingStyleChanged -= this.ItemInfo_PricingStyleChanged;
            this.BuySet.RemoveItemAt(index);
            if (drop == null)
            {
                this.layoutMain.Controls.Remove(slot);
                this.dropSlots.Remove(slot);
                slot = null;
            }
            else
            {
                this.BuySet.AddItem(drop as ItemInfo);
                slot.Set(drop);
            }
            this.UpdateCost();
            return;
        }
コード例 #4
0
        private void dropChampion_DropOccurred(DropSlot slot, API.Serialization.Interfaces.IRiotDroppable drop)
        {
            ChampionInfo champ = drop as ChampionInfo;

            this.Model.Build.SetChampion(champ);
        }