Foodolini.Activities.IngredientDialog Class Reference

A dialog window which allows the user to either view/edit the details of a specific Ingredient, delete or create a new one. More...

Collaboration diagram for Foodolini.Activities.IngredientDialog:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Foodolini.Activities.IngredientDialog.IngredientDialog ( Ingredient  ingredient,
bool  isNew,
string  selectedCategory 
)

Instantiates a new ingredient dialog.

Parameters:
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.

Parameters:
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.

Parameters:
ingredient A Ingredient

Definition at line 80 of file IngredientDialog.cs.

Foodolini.Activities.IngredientDialog.IngredientDialog (  ) 

Definition at line 84 of file IngredientDialog.cs.


Member Function Documentation

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.

Here is the caller graph for this function:


Property Documentation

Ingredient Foodolini.Activities.IngredientDialog.Ingredient [get, set]

The Ingredient instance.

Definition at line 17 of file IngredientDialog.cs.


The documentation for this class was generated from the following files:

Generated on Thu Dec 10 14:04:02 2009 for Foodolini by  doxygen 1.6.1