Exemplo n.º 1
0
        private void FrmOpenTakingInventory_Load(object sender, EventArgs e)
        {
            INVInventoryService inventoryService = new INVInventoryService();

            cmb_inventory.DataSource    = inventoryService.SelectAll();
            cmb_inventory.DisplayMember = "InventoryName";
            cmb_inventory.ValueMember   = "InventoryID";

            BDProductService productService = new BDProductService();

            cmb_Product.DataSource    = productService.SelectAll();
            cmb_Product.DisplayMember = "ProductName";
            cmb_Product.ValueMember   = "ProductID";

            BDProductGroupService productGroupService = new BDProductGroupService();

            cmb_productGroup.DataSource    = productGroupService.SelectAll();
            cmb_productGroup.DisplayMember = "ProductGroupName";
            cmb_productGroup.ValueMember   = "ProductGroupID";

            ResetFields();
        }