예제 #1
0
        private void getInfo_Click(object sender, EventArgs e)
        {
            Client   client   = (Client)comboBox1.SelectedItem;
            DBClient dBClient = new DBClient();

            dataGridView1.DataSource = dBClient.procedure(client.idClient);
        }
예제 #2
0
        private void showClient()
        {
            DBClient dBClient = new DBClient();

            comboBox1.DataSource    = dBClient.getAllClient();
            comboBox1.DisplayMember = "firstName";
        }
예제 #3
0
        private void buttonLinq_Click(object sender, EventArgs e)
        {
            DBClient dBClient = new DBClient();

            dataGridView1.DataSource = dBClient.linq();
        }