示例#1
0
        private void IndexForm_Load(object sender, EventArgs e)
        {
            VenteCont venteCont = new VenteCont();

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

            venteCont.ListVente = listVentes;
            venteCont.ApplyVenteAndUpdateStock();
        }