Exemplo n.º 1
0
        public void SetDataSource(BadgerDataModel context, int partID)
        {
            ctx         = context;
            partService = new PartsService(ctx);
            units       = partService.Units();
            // Load the Unit Combo ----
            cboUnitOfMeasure.DisplayMember = "Uom";
            cboUnitOfMeasure.ValueMember   = "UID";
            cboUnitOfMeasure.DataSource    = units;

            loadData(7991);

            bsPart.ListChanged      += BsPart_ListChanged;
            bsResources.ListChanged += BsResources_ListChanged;

            BindPart();
        }