Exemplo n.º 1
0
        private void CustomerListButton_Click(object sender, EventArgs e)
        {
            /*
             * Contact types passed to ExampleCustomersList1 are existing values in the ContactType table
             */
            var customers = SqlOperations.ExampleCustomersList1(new List <string>()
            {
                "Assistant Sales Agent", "Owner"
            });

            if (_hasException)
            {
                MessageBox.Show($"Failed with\n{_lastException.Message}");
            }
            else
            {
                MessageBox.Show($"Returned {customers.Count} rows");
            }
        }