Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }