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); }
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); }
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; }
private void dropChampion_DropOccurred(DropSlot slot, API.Serialization.Interfaces.IRiotDroppable drop) { ChampionInfo champ = drop as ChampionInfo; this.Model.Build.SetChampion(champ); }