private void btnThrowN_Click(object sender, EventArgs e) { if (lvItems.SelectedItems.Count > 0) { ItemType type = lvItems.SelectedItems[0].Tag as ItemType; ItemHelper.ThrowItem(type.Name, (int)nudStack.Value); } }
private void btnThrowOne_Click(object sender, EventArgs e) { if (lvItems.SelectedItems.Count > 0) { ItemType type = lvItems.SelectedItems[0].Tag as ItemType; ItemHelper.ThrowItem(type.Name, 1); } }