Esempio n. 1
0
    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));
    }
Esempio n. 2
0
    private void RefreshView()
    {
        var currentFavCoffee = favoritesCoffeesController.GetCurrentFavoriteCoffee();

        if (currentFavCoffee == null)
        {
            ShowAddCoffeeView();
        }
        else
        {
            ShowRemoveCoffeeView(currentFavCoffee);
        }
    }
Esempio n. 3
0
    private void RefreshView()
    {
        var currentFavoriteCoffee = favoritesCoffeesController.GetCurrentFavoriteCoffee();

        if (currentFavoriteCoffee == null)
        {
            ShowAddFavoriteCoffeeArea();
        }
        else
        {
            ShowMakeFavoriteCoffee(currentFavoriteCoffee);
        }
    }