private void getInfo_Click(object sender, EventArgs e) { Client client = (Client)comboBox1.SelectedItem; DBClient dBClient = new DBClient(); dataGridView1.DataSource = dBClient.procedure(client.idClient); }
private void showClient() { DBClient dBClient = new DBClient(); comboBox1.DataSource = dBClient.getAllClient(); comboBox1.DisplayMember = "firstName"; }
private void buttonLinq_Click(object sender, EventArgs e) { DBClient dBClient = new DBClient(); dataGridView1.DataSource = dBClient.linq(); }