public RapportHebdomadaire(object sth) { InitializeComponent(); this.stockhebdo = (StockHebdo)sth; stockhebdo.process(); articles = stockhebdo.getArticles(); afficher(); }
public void afficher() { dataGridView1.Rows.Clear(); String[] row; while (articles != null) { row = new string[4]; row[0] = articles.ar_ref; row[1] = articles.ar_design; row[2] = DecimalToString(articles.qte_residuel); row[3] = DecimalToString(articles.qte_vendu); dataGridView1.Rows.Add(row); articles = articles.rightChild; } }