private void nameSearchButton_Click(object sender, EventArgs e) { String name = nameTextBox.Text; inventory.searchByName(name); }