コード例 #1
0
        private void UpdateProductForm_Load(object sender, EventArgs e)
        {
            serviceDAA = new DBControllerWSClient();
            brands     = new BindingList <brand>(serviceDAA.queryAllBrand());
            for (int i = 0; i < brands.Count; i++)
            {
                cboBrand.Items.Add("" + brands[i].name);
            }

            //cboBrand.DataSource = brands;
            families = new BindingList <family>(serviceDAA.queryAllFamily());
            for (int i = 0; i < families.Count; i++)
            {
                cboFamily.Items.Add("" + families[i].name);
            }

            discounts = new BindingList <discount>(serviceDAA.queryAllDiscount());
            for (int i = 0; i < discounts.Count; i++)
            {
                cboDiscount.Items.Add("" + discounts[i].description);
            }
        }