コード例 #1
0
        //xử lý phần nhà cung cấp
        private void MainForm_Load(object sender, EventArgs e)
        {
            tabPaneMainForm.SelectedPage = tabNaviPage_NhaCungCap;
            var suppliers = _supplierBusinessLogic.GetallSupplier();

            supplierGridControl.DataSource = suppliers.ToList();
            supplierGridControl.Refresh();
        }
コード例 #2
0
        private void btn_Unclock_Click(object sender, EventArgs e)
        {
            // combo box nha cung cap
            cmb_ChooseSupplier.DisplayMember = "name";
            cmb_ChooseSupplier.ValueMember   = "id";
            cmb_ChooseSupplier.DataSource    = _supplierBusinessLogic.GetallSupplier();

            // combo box san pham
            cmb_ChooseProduct.DisplayMember = "name";
            cmb_ChooseProduct.ValueMember   = "id";
            cmb_ChooseProduct.DataSource    = _productBusinessLogic.GetAllProduct();

            btn_importProduct.Enabled = true;
            txtB_Quantity.Enabled     = true;
            txtB_UnitPrice.Enabled    = true;
        }