private void ShowInventory_Button_Click(object sender, EventArgs e) { inventoryForm = (InventoryForm)OpenNewForm(inventoryForm, new InventoryForm(character, СharacteristicsLabel, PetLabel)); if (shopForm != null) { shopForm.inventory = inventoryForm; } inventoryForm.ShowAll(); }
private void InventoryButton_Click(object sender, EventArgs e) { if (inventory == null || !inventory.Visible) { inventory = new InventoryForm(Character, ForCharacter, ForPet); inventory.Show(); } inventory.ShowAll(); }