private void ShopButtonClicked(int index) { buyItem = new BuyItem(ItemsArray[index], character); buyItem.ShowDialog(); }