예제 #1
0
        private void CustomersDataTableButtonButton_Click(object sender, EventArgs e)
        {
            /*
             * Contact types passed to ExampleCustomersList1 are existing values in the ContactType table
             */
            var dataTable = SqlOperations.ExampleCustomersDataTable1(new List <string>()
            {
                "Assistant Sales Agent", "Owner"
            });

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