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

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

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