private void ProductListButton_Click(object sender, EventArgs e) { /* * Categories passed to ExampleProductsList are existing values in the Category table */ var customers = SqlOperations.ExampleProductsList(new List <string>() { "Beverages", "Dairy Products", "Condiments" }); if (_hasException) { MessageBox.Show($"Failed with\n{_lastException.Message}"); } else { MessageBox.Show($"Returned {customers.Count} rows"); } }