Пример #1
0
        private void PopulateCoffeeList()
        {
            List <Drink> drink = CoffeeDb.GetAllCoffee();

            cmbCoffee.DataSource    = drink;
            cmbCoffee.DisplayMember = nameof(Drink.DrinkName);
        }
Пример #2
0
        public void PopluateCoffeeList()
        {
            cboCoffee.DataSource = null;
            List <Drink> coffee = CoffeeDb.GetAllCoffee();

            //throw new NotImplementedException();
            cboCoffee.DataSource    = coffee;
            cboCoffee.DisplayMember = nameof(Drink.DrinkName);
            chkPopulate();
        }