Ejemplo n.º 1
0
 //populates the "Product" ComboBoxColumn with a list of Products
 private void populateNewLineProductComboBox(DataGridViewComboBoxColumn cb)
 {
     cb.Items.Clear();
     var unorderProducts = new List<Reorder>();
     var _unordered = new ReorderManager(unorderProducts);
     unorderProducts = _unordered.GetReordersForVendor((int)cbVendors.SelectedValue, 1);
     foreach (Reorder product in unorderProducts)
     {
         cb.Items.Add(product.Product.Name);
     }
 }
Ejemplo n.º 2
0
        //populates datagridview = dgvReord
        private void populateDataGridView(int vendor)
        {
            ReorderManager _reportNull = new ReorderManager(new List<Reorder>());

            //  0 will return all products that are under the reorderthreshold
            lreport = _reportNull.GetReordersForVendor(vendor, 0);

            _report = new ReorderManager(lreport);
            populateDGV();
        }