Beispiel #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;
         }
     }
 }
Beispiel #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;
             }
         }
     }
 }