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