A dialog window which allows the user to either view/edit the details of a specific Ingredient, delete or create a new one. More...
Public Member Functions | |
IngredientDialog (Ingredient ingredient, bool isNew, string selectedCategory) | |
Instantiates a new ingredient dialog. | |
IngredientDialog (string selectedCategory) | |
Constructor for creating a new Ingredient object with a selected category. | |
IngredientDialog (Ingredient ingredient) | |
Instantiates an ingredient dialog with the provided ingredient. | |
IngredientDialog () | |
void | SaveIngredient () |
Saves changes to the ingredient. | |
Protected Member Functions | |
virtual void | Build () |
virtual void | OnNutrientsViewRowActivated (object o, Gtk.RowActivatedArgs args) |
Properties | |
Ingredient | Ingredient [get, set] |
The Ingredient instance. |
A dialog window which allows the user to either view/edit the details of a specific Ingredient, delete or create a new one.
Definition at line 14 of file Foodolini.Activities.IngredientDialog.cs.
Foodolini.Activities.IngredientDialog.IngredientDialog | ( | Ingredient | ingredient, | |
bool | isNew, | |||
string | selectedCategory | |||
) |
Instantiates a new ingredient dialog.
ingredient | A Ingredient to bind to the dialog. | |
isNew | A System.Boolean whether the Ingredient provided is new. | |
selectedCategory | A System.String containing the category to select in the category combobox. |
Definition at line 52 of file IngredientDialog.cs.
Foodolini.Activities.IngredientDialog.IngredientDialog | ( | string | selectedCategory | ) |
Constructor for creating a new Ingredient object with a selected category.
ingredient | A Ingredient to bind to the dialog. | |
selectedCategory | A System.String containing the category to select in the category combobox. |
Definition at line 70 of file IngredientDialog.cs.
Foodolini.Activities.IngredientDialog.IngredientDialog | ( | Ingredient | ingredient | ) |
Instantiates an ingredient dialog with the provided ingredient.
ingredient | A Ingredient |
Definition at line 80 of file IngredientDialog.cs.
Foodolini.Activities.IngredientDialog.IngredientDialog | ( | ) |
Definition at line 84 of file IngredientDialog.cs.
virtual void Foodolini.Activities.IngredientDialog.Build | ( | ) | [protected, virtual] |
Definition at line 64 of file Foodolini.Activities.IngredientDialog.cs.
virtual void Foodolini.Activities.IngredientDialog.OnNutrientsViewRowActivated | ( | object | o, | |
Gtk.RowActivatedArgs | args | |||
) | [protected, virtual] |
Definition at line 241 of file IngredientDialog.cs.
void Foodolini.Activities.IngredientDialog.SaveIngredient | ( | ) |
Saves changes to the ingredient.
Definition at line 206 of file IngredientDialog.cs.
Ingredient Foodolini.Activities.IngredientDialog.Ingredient [get, set] |
The Ingredient instance.
Definition at line 17 of file IngredientDialog.cs.