private void InventoryButtonClick(object sender, EventArgs e) { AddInventory addInventory = null; if (addInventory != null) { addInventory.Activate(); } else { addInventory = new AddInventory(); addInventory.Show(); } }