예제 #1
0
        private void InitializeComboBox()
        {
            List <Food> foods = foodController.GetAllFoods();

            foreach (Food f in foods)
            {
                cbFood.Items.Add(String.Format("{0} - {1}", f.FoodID, f.Name));
            }

            cbWeightFood.Items.Add(Weigth.WEIGHT_G);
        }