Beispiel #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);
     }
 }
Beispiel #2
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     _vendorOrdered = true;
     dgvReorder.Rows.Clear();
     _report = null;
 }
Beispiel #3
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();
        }