public ProducedCoffee MakeFavoriteCoffee() { if (!machineEnabled) { return(new ProducedCoffee(settings.StatusMachineDisabled, null)); } if (favoritesCoffeesController.GetCurrentFavoriteCoffee() == null) { return(new ProducedCoffee(settings.NoFavCoffeeSelectedStatus, null)); } Coffee coffee = favoritesCoffeesController.GetCurrentFavoriteCoffee().GetCoffeeFromThisSettings(); return(MakeCoffee(coffee)); }
private void RefreshView() { var currentFavCoffee = favoritesCoffeesController.GetCurrentFavoriteCoffee(); if (currentFavCoffee == null) { ShowAddCoffeeView(); } else { ShowRemoveCoffeeView(currentFavCoffee); } }
private void RefreshView() { var currentFavoriteCoffee = favoritesCoffeesController.GetCurrentFavoriteCoffee(); if (currentFavoriteCoffee == null) { ShowAddFavoriteCoffeeArea(); } else { ShowMakeFavoriteCoffee(currentFavoriteCoffee); } }