00001 using System; 00002 using Gtk; 00003 using Foodolini.BusinessLogic; 00004 00005 namespace Foodolini.Activities.Administration 00006 { 00011 [TreeNode (ListOnly = true)] 00012 public class PersonAdapter : TreeNode 00013 { 00014 public Person Person{get; private set;} 00015 00016 public PersonAdapter(Person person) 00017 { 00018 this.Person = person; 00019 } 00020 00021 [Gtk.TreeNodeValue (Column=0)] 00022 public string Name{ 00023 get{ 00024 return this.Person.FullName; 00025 } 00026 } 00027 00028 [Gtk.TreeNodeValue (Column=1)] 00029 public string UserName{ 00030 get{ 00031 return this.Person.UserName; 00032 00033 } 00034 } 00035 00036 [Gtk.TreeNodeValue (Column=2)] 00037 public double Height{ 00038 get{ 00039 return this.Person.Height; 00040 00041 } 00042 } 00043 00044 [Gtk.TreeNodeValue (Column=4)] 00045 public double Weight{ 00046 get{ 00047 return this.Person.Weight; 00048 } 00049 } 00050 00051 } 00052 }