The Main Inventoy Activity display the FoodItem in the storage to the user and allow the user to consume, edit or delete a selected FoodItem. More...
Inherits Foodolini::Activities::IActivity.
Public Member Functions | |
InventoryActivity () | |
creates a new Inventory Activity | |
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 | Build () |
virtual void | OnRegisterBtnClicked (object sender, System.EventArgs e) |
push a FoodRegistartion activity. Were the user can registere new fooditem and then return to the inventory. | |
virtual void | OnDeletebntClicked (object sender, System.EventArgs e) |
opens delete dialog. | |
virtual void | OnEditbntClicked (object sender, System.EventArgs e) |
open edit dialog | |
virtual void | OnConsumeBntClicked (object sender, System.EventArgs e) |
creates a consume fooditem dialog were the user can select an amount to consume. | |
virtual void | OnFoodItemViewCursorChanged (object sender, System.EventArgs e) |
virtual void | OnFoodItemViewButtonPressEvent (object o, Gtk.ButtonPressEventArgs args) |
virtual void | OnFoodItemViewRowActivated (object o, Gtk.RowActivatedArgs args) |
Properties | |
Widget | Widget [get] |
The Main Inventoy Activity display the FoodItem in the storage to the user and allow the user to consume, edit or delete a selected FoodItem.
Definition at line 14 of file Foodolini.Activities.InventoryActivity.cs.
Foodolini.Activities.InventoryActivity.InventoryActivity | ( | ) |
creates a new Inventory Activity
Definition at line 20 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.Build | ( | ) | [protected, virtual] |
Definition at line 66 of file Foodolini.Activities.InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnConsumeBntClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
creates a consume fooditem dialog were the user can select an amount to consume.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 180 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnDeletebntClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
opens delete dialog.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 92 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnEditbntClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
open edit dialog
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 129 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnFoodItemViewButtonPressEvent | ( | object | o, | |
Gtk.ButtonPressEventArgs | args | |||
) | [protected, virtual] |
Definition at line 230 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnFoodItemViewCursorChanged | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
Definition at line 212 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnFoodItemViewRowActivated | ( | object | o, | |
Gtk.RowActivatedArgs | args | |||
) | [protected, virtual] |
Definition at line 250 of file InventoryActivity.cs.
virtual void Foodolini.Activities.InventoryActivity.OnRegisterBtnClicked | ( | object | sender, | |
System.EventArgs | e | |||
) | [protected, virtual] |
push a FoodRegistartion activity. Were the user can registere new fooditem and then return to the inventory.
sender | A System.Object | |
e | A System.EventArgs |
Definition at line 78 of file InventoryActivity.cs.
void Foodolini.Activities.InventoryActivity.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 30 of file InventoryActivity.cs.
void Foodolini.Activities.InventoryActivity.Unregister | ( | ) |
Unsubscribe to the events exposed by owner, and loose any references to owner.
Implements Foodolini.Activities.IActivity.
Definition at line 65 of file InventoryActivity.cs.
Widget Foodolini.Activities.InventoryActivity.Widget [get] |
Implements Foodolini.Activities.IActivity.
Definition at line 257 of file InventoryActivity.cs.