Foodolini.Activities.Inventory.EditFoodItemDialog Class Reference

Dialog for editing a FoodItem. More...

Collaboration diagram for Foodolini.Activities.Inventory.EditFoodItemDialog:
Collaboration graph

List of all members.

Public Member Functions

 EditFoodItemDialog (FoodItem food)
 Setup the dialog to reflect the given FoodItem.
void DontSave ()
 return the fooditem to previus settings

Protected Member Functions

virtual void OnBntIngreClicked (object sender, System.EventArgs e)
 Opens a dialog to select an Ingredient.
virtual void OnChOpenToggled (object sender, System.EventArgs e)
 Opens or close the FoodItem based on the Toggled.
virtual void Build ()

Properties

FoodItem Food [get]

Private Attributes

FoodItem foodItem
Ingredient activeIngredient
DateTime SavedEx
bool Savedisopen
Gtk.HBox hbox1
Gtk.VBox vbox1
Gtk.Table table1
Gtk.Label lbAmount1
Gtk.Label lbIngre
Gtk.Label lbIngredient
Gtk.SpinButton spinAmount
Gtk.Button bntIngre
Gtk.CheckButton chOpen
Gtk.Label lbExpiration
Gtk.Calendar cal
Gtk.Button buttonCancel
Gtk.Button buttonOk

Detailed Description

Dialog for editing a FoodItem.

Definition at line 15 of file EditFoodItemDialog.cs.


Constructor & Destructor Documentation

Foodolini.Activities.Inventory.EditFoodItemDialog.EditFoodItemDialog ( FoodItem  food  ) 

Setup the dialog to reflect the given FoodItem.

Parameters:
food A FoodItem to edit.

Definition at line 29 of file EditFoodItemDialog.cs.


Member Function Documentation

virtual void Foodolini.Activities.Inventory.EditFoodItemDialog.Build (  )  [protected, virtual]
void Foodolini.Activities.Inventory.EditFoodItemDialog.DontSave (  ) 

return the fooditem to previus settings

Definition at line 65 of file EditFoodItemDialog.cs.

virtual void Foodolini.Activities.Inventory.EditFoodItemDialog.OnBntIngreClicked ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens a dialog to select an Ingredient.

Parameters:
sender A System.Object
e A System.EventArgs

Definition at line 82 of file EditFoodItemDialog.cs.

virtual void Foodolini.Activities.Inventory.EditFoodItemDialog.OnChOpenToggled ( object  sender,
System.EventArgs  e 
) [protected, virtual]

Opens or close the FoodItem based on the Toggled.

Parameters:
sender A System.Object
e A System.EventArgs

Definition at line 102 of file EditFoodItemDialog.cs.


Member Data Documentation

Definition at line 19 of file EditFoodItemDialog.cs.

Definition at line 18 of file EditFoodItemDialog.cs.

Definition at line 20 of file EditFoodItemDialog.cs.

Definition at line 21 of file EditFoodItemDialog.cs.


Property Documentation

FoodItem Foodolini.Activities.Inventory.EditFoodItemDialog.Food [get]

returns the FoodItem based on the dialog controllers

Definition at line 50 of file EditFoodItemDialog.cs.


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

Foodolini 1.0.0 Documentation, generated with DoxyGen.