Méthode | Description | |
---|---|---|
Add ( string product, int quota ) : void |
// Adds the given product to the shopping list or increases its quota if already present
|
|
CheckOff ( int amount ) : bool |
Marks the given amount as obtained for the current item of interest on this shopping list.
|
|
Next ( ) : bool |
Sets the current item of interest to be the next available item in the list (cyclical). Returns false if all items have had their quota reached or have been marked as 'Pass'.
|
|
ShoppingList ( ) : System.Collections.Specialized |
public Add ( string product, int quota ) : void | ||
product | string | The product to add to the shopping list |
quota | int | The required amount of product |
Résultat | void |
public CheckOff ( int amount ) : bool | ||
amount | int | The amount to mark as obtained |
Résultat | bool |
public ShoppingList ( ) : System.Collections.Specialized | ||
Résultat | System.Collections.Specialized |