Inherits Foodolini::Activities::IActivity.
Public Member Functions | |
ShoppingListActivity () | |
void | Register (IOwner owner) |
Subscribe to the events exposed by owner, and store a reference to owner. | |
void | Unregister () |
Unsubscribe to the events exposed by owner, and loose any references to owner. | |
void | AddRecipe (Recipe recipe, double servings) |
Add all ingredients needed for the recipe to the shoppinglist. | |
Protected Member Functions | |
virtual void | Build () |
virtual void | OnBtnClearActivated (object sender, System.EventArgs e) |
virtual void | OnBtnAddIngredientClicked (object sender, System.EventArgs e) |
virtual void | OnBtnPrintClicked (object sender, System.EventArgs e) |
Prints the shopping shoppingList. | |
virtual void | OnBtnCookbookClicked (object sender, System.EventArgs e) |
Goes to the cookbook activity. | |
virtual void | OnBtnDeleteClicked (object sender, System.EventArgs e) |
Deletes an item from the shopping shoppingList. | |
virtual void | OnShoppingListViewerCursorChanged (object sender, System.EventArgs e) |
virtual void | OnShoppingListViewerRowActivated (object o, Gtk.RowActivatedArgs args) |
Changes the ingredient in shoppinglist item. | |
Properties | |
Widget | Widget [get] |
Definition at line 14 of file Foodolini.Activities.ShoppingListActivity.cs.
Foodolini.Activities.ShoppingListActivity.ShoppingListActivity | ( | ) |
Definition at line 19 of file ShoppingListActivity.cs.
void Foodolini.Activities.ShoppingListActivity.AddRecipe | ( | Recipe | recipe, | |
double | servings | |||
) |
Add all ingredients needed for the recipe to the shoppinglist.
This is all ingredients, and does not depend on what is on storage. If the nature of the shoppinglist is changed in the future, this may change.
Definition at line 121 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.Build | ( | ) | [protected, virtual] |
Definition at line 34 of file Foodolini.Activities.ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnBtnAddIngredientClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
virtual void Foodolini.Activities.ShoppingListActivity.OnBtnClearActivated | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Definition at line 94 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnBtnCookbookClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Goes to the cookbook activity.
sender | ||
e |
Definition at line 290 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnBtnDeleteClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Deletes an item from the shopping shoppingList.
sender | ||
e |
Definition at line 300 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnBtnPrintClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Prints the shopping shoppingList.
sender | ||
e |
Definition at line 134 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnShoppingListViewerCursorChanged | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Definition at line 316 of file ShoppingListActivity.cs.
virtual void Foodolini.Activities.ShoppingListActivity.OnShoppingListViewerRowActivated | ( | object | o, | |
Gtk.RowActivatedArgs | args | |||
) | [protected, virtual] |
Changes the ingredient in shoppinglist item.
o | A System.Object | |
args | A Gtk.RowActivatedArgs |
Definition at line 330 of file ShoppingListActivity.cs.
void Foodolini.Activities.ShoppingListActivity.Register | ( | IOwner | owner | ) |
Subscribe to the events exposed by owner, and store a reference to owner.
owner | Instance of an implementation of IOwner |
Implements Foodolini.Activities.IActivity.
Definition at line 31 of file ShoppingListActivity.cs.
void Foodolini.Activities.ShoppingListActivity.Unregister | ( | ) |
Unsubscribe to the events exposed by owner, and loose any references to owner.
Implements Foodolini.Activities.IActivity.
Definition at line 88 of file ShoppingListActivity.cs.
Widget Foodolini.Activities.ShoppingListActivity.Widget [get] |
Implements Foodolini.Activities.IActivity.
Definition at line 25 of file ShoppingListActivity.cs.