Inherits Foodolini::Activities::IActivity.
Public Member Functions | |
CookbookActivity () | |
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. | |
Protected Member Functions | |
virtual void | OnBtnSearchClicked (object sender, System.EventArgs e) |
Searches in the database for Recipes that fit the chosen criteria. | |
virtual void | OnEntSearchRecipesActivated (object sender, System.EventArgs e) |
Searches in the database for Recipes that fit the chosen criteria. | |
virtual void | SearchCriteriaChanged (object sender, System.EventArgs e) |
Sets the sensitivity on th scalebuttons i the advanced search criteria to true or false whether Expiration date and/or rating is selected as a search criteria. | |
virtual void | ViewRecipe (object sender, System.EventArgs e) |
Views the selected Recipe in a RecipeViewer to the right. If one is already viewn this is destroyed. | |
virtual void | OnCreateRecipeClick (object sender, System.EventArgs e) |
Opens the "Create recipe" activity where a new recipe can be created. | |
virtual void | EditRecipe (object o, Gtk.RowActivatedArgs args) |
Opens the "Edit recipe" activity wher an existing recipe can be editted. | |
virtual void | Build () |
Properties | |
Widget | Widget [get] |
Definition at line 13 of file CookbookActivity.cs.
Foodolini.Activities.CookbookActivity.CookbookActivity | ( | ) |
Definition at line 19 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.Build | ( | ) | [protected, virtual] |
Definition at line 74 of file Foodolini.Activities.CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.EditRecipe | ( | object | o, | |
Gtk.RowActivatedArgs | args | |||
) | [protected, virtual] |
Opens the "Edit recipe" activity wher an existing recipe can be editted.
Definition at line 185 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.OnBtnSearchClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Searches in the database for Recipes that fit the chosen criteria.
Definition at line 52 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.OnCreateRecipeClick | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Opens the "Create recipe" activity where a new recipe can be created.
Definition at line 176 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.OnEntSearchRecipesActivated | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Searches in the database for Recipes that fit the chosen criteria.
Definition at line 60 of file CookbookActivity.cs.
void Foodolini.Activities.CookbookActivity.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 196 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.SearchCriteriaChanged | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Sets the sensitivity on th scalebuttons i the advanced search criteria to true or false whether Expiration date and/or rating is selected as a search criteria.
Definition at line 121 of file CookbookActivity.cs.
void Foodolini.Activities.CookbookActivity.Unregister | ( | ) |
Unsubscribe to the events exposed by owner, and loose any references to owner.
Implements Foodolini.Activities.IActivity.
Definition at line 200 of file CookbookActivity.cs.
virtual void Foodolini.Activities.CookbookActivity.ViewRecipe | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Views the selected Recipe in a RecipeViewer to the right. If one is already viewn this is destroyed.
Definition at line 148 of file CookbookActivity.cs.
Widget Foodolini.Activities.CookbookActivity.Widget [get] |
Implements Foodolini.Activities.IActivity.
Definition at line 205 of file CookbookActivity.cs.