Ejemplo n.º 1
0
 private void button10_Click(object sender, EventArgs e)
 {
     using (var iForm = new InventoryForm())
     {
         iForm.ShowDialog();
         string iName = iForm.itemName;
         if (!string.IsNullOrEmpty(iName))
         {
             txtboxItemNames.Text = iName;
         }
     }
 }
Ejemplo n.º 2
0
 private void button8_Click(object sender, EventArgs e)
 {
     using (var iForm = new InventoryForm())
     {
         iForm.ShowDialog();
         uint   itemId   = iForm.itemId;
         string itemName = iForm.itemName;
         if (itemId != 0)
         {
             _profile.gather.ItemId = itemId.ToString();
             txtboxItemId.Text      = _profile.gather.ItemId;
             if (!_profile.Items.Contains(itemName))
             {
                 txtboxItemNames.Text = itemName;
             }
         }
     }
 }