private void FoodAndNoonFoodTransaction_Load(object sender, EventArgs e) { StoreDAO aStoreDao = new StoreDAO(); List <Store> aList = new List <Store>(); aList = aStoreDao.GetAllRawmaterialCategory(); categorycomboBox.DataSource = aList; categorycomboBox.ValueMember = "StoreId"; categorycomboBox.DisplayMember = "ItemName"; }
private void LoadRawmaterialCategory() { StoreDAO aStoreDao = new StoreDAO(); List <Store> aList = new List <Store>(); aList = aStoreDao.GetAllRawmaterialCategory(); categorycomboBox.DataSource = aList; categorycomboBox.ValueMember = "StoreId"; categorycomboBox.DisplayMember = "ItemName"; }