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 11 of file PersonAdapter.cs.
Foodolini.Activities.PersonAdapter.PersonAdapter | ( | Person | person, | |
double | percentageEaten | |||
) |
Sets the person and the percentage eaten.
person | A Person | |
percentageEaten | A System.Double |
Definition at line 22 of file PersonAdapter.cs.
Foodolini.Activities.PersonAdapter.PersonAdapter | ( | Person | person | ) |
string Foodolini.Activities.PersonAdapter.Name [get] |
Getter for the full name of the person
Definition at line 43 of file PersonAdapter.cs.
double Foodolini.Activities.PersonAdapter.PercentageEaten [get, set] |
Getter and setter of the percentage eaten of the meal
Definition at line 63 of file PersonAdapter.cs.
Person Foodolini.Activities.PersonAdapter.Person [get, set] |
Getter and private setter of the person
Definition at line 68 of file PersonAdapter.cs.
string Foodolini.Activities.PersonAdapter.UserName [get] |
Getter for the user name of the person
Definition at line 53 of file PersonAdapter.cs.