Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ConnectBD();
            string           query  = "SELECT id from order_outfit WHERE order_outfit.id_vehicle = (SELECT id FROM vehicle WHERE vin='" + vin + "');";
            NpgsqlCommand    comand = new NpgsqlCommand(query, npgSqlConnection);
            NpgsqlDataReader reader = comand.ExecuteReader();

            while (reader.Read())
            {
                s = reader[0].ToString();
            }
            var f = new listwork(s);

            f.Show();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var f = new listwork(id);

            f.Show();
        }