Exemple #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            var dbc = new DatabaseComponent();

            // Verhoog in prijs
            int aantal = dbc.Execute("update SalesLT.Product set ListPrice = ListPrice + 1 where ProductID = 1036");

            // Haal de data opnieuw op
            dataGridView1.DataSource = dbc.GetExpensiveProducts();
        }
Exemple #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            var dbc = new DatabaseComponent();

            dataGridView1.DataSource = dbc.GetExpensiveProducts();
        }