private void IndexForm_Load(object sender, EventArgs e) { VenteCont venteCont = new VenteCont(); venteCont.rechercheToutesVente(); dataGridView1.DataSource = null; dataGridView1.DataSource = venteCont.ListVente; }
private void button_appliquer_Click(object sender, EventArgs e) { List <Vente> listVentes = lireListVentes(); VenteCont venteCont = new VenteCont(); venteCont.ListVente = listVentes; venteCont.ApplyVenteAndUpdateStock(); }