00001 using System; 00002 using Gtk; 00003 using Foodolini.BusinessLogic; 00004 00005 namespace Foodolini.Activities.Administration 00006 { 00010 [TreeNode (ListOnly = true)] 00011 public class PersonAdapter : TreeNode 00012 { 00013 public Person Person{get; private set;} 00014 00015 public PersonAdapter(Person person) 00016 { 00017 this.Person = person; 00018 } 00019 00020 [Gtk.TreeNodeValue (Column=0)] 00021 public string Name{ 00022 get{ 00023 return this.Person.FullName; 00024 } 00025 } 00026 00027 [Gtk.TreeNodeValue (Column=1)] 00028 public string UserName{ 00029 get{ 00030 return this.Person.UserName; 00031 } 00032 } 00033 } 00034 }