Adapts a person to the TreeNode interface. More...
Public Member Functions | |
PersonAdapter (Person person, double percentageEaten) | |
Sets the person and the percentage eaten. | |
PersonAdapter (Person person) | |
Set the person. | |
Properties | |
string | Name [get] |
string | UserName [get] |
double | PercentageEaten [get, set] |
Person | Person [get, set] |
Adapts a person to the TreeNode interface.
Definition at line 12 of file PersonAdapter.cs.
Foodolini.Activities.Cookbook.PersonAdapter.PersonAdapter | ( | Person | person, | |
double | percentageEaten | |||
) |
Sets the person and the percentage eaten.
person | A Person | |
percentageEaten | A System.Double |
Definition at line 23 of file PersonAdapter.cs.
Foodolini.Activities.Cookbook.PersonAdapter.PersonAdapter | ( | Person | person | ) |
string Foodolini.Activities.Cookbook.PersonAdapter.Name [get] |
Getter for the full name of the person
Definition at line 44 of file PersonAdapter.cs.
double Foodolini.Activities.Cookbook.PersonAdapter.PercentageEaten [get, set] |
Getter and setter of the percentage eaten of the meal
Definition at line 64 of file PersonAdapter.cs.
Person Foodolini.Activities.Cookbook.PersonAdapter.Person [get, set] |
Getter and private setter of the person
Definition at line 69 of file PersonAdapter.cs.
string Foodolini.Activities.Cookbook.PersonAdapter.UserName [get] |
Getter for the user name of the person
Definition at line 54 of file PersonAdapter.cs.