private void LoadUnit() { UnitCreateBLL aBll = new UnitCreateBLL(); List <Unit> aList = new List <Unit>(); aList = aBll.GetALLUnit(); unitNamecomboBox.DataSource = aList; unitNamecomboBox.DisplayMember = "UnitName"; unitNamecomboBox.ValueMember = "UnitId"; }
public ItemCreateForm() { InitializeComponent(); // this.AcceptButton=savebutton; itemCreatelabel.Visible = false; InventoryCategoryBLL aBlll = new InventoryCategoryBLL(); List <InventoryCategory> aaList = new List <InventoryCategory>(); aaList = aBlll.GetAllCategory(); categoryNamecomboBox.DataSource = aaList; categoryNamecomboBox.DisplayMember = "CategoryName"; categoryNamecomboBox.ValueMember = "CategoryId"; UnitCreateBLL aBll = new UnitCreateBLL(); List <Unit> aList = new List <Unit>(); aList = aBll.GetALLUnit(); unitNamecomboBox.DataSource = aList; unitNamecomboBox.DisplayMember = "UnitName"; unitNamecomboBox.ValueMember = "UnitId"; }