public ProfileAdd(int id, ItemDisplay itemDisplay, Button button) { InitializeComponent(); this.itemDisplay = itemDisplay; this.id = id; this.button = button; }
private void OpenButton_Click(object sender, EventArgs e) { int selectedIndex = ComboBoxInv.SelectedIndex; ItemDisplay item = new ItemDisplay(inv, selectedIndex); item.Show(); }