using System; using Comal.Classes; using Xamarin.Forms; namespace comal.timesheets { public class EmployeeTeamShell : Shell { static EmployeeTeamShell() { Columns .Map(nameof(TeamID), x=>x.TeamLink.ID) .Map(nameof(TeamName), x => x.TeamLink.Name) .Map(nameof(ID), x => x.EmployeeLink.ID) .Map(nameof(Code), x => x.EmployeeLink.Code) .Map(nameof(Name), x => x.EmployeeLink.Name) .Map(nameof(ThumbnailID), x=>x.EmployeeLink.Thumbnail.ID); } public Guid TeamID => Get(); public String TeamName => Get(); public Guid ID => Get(); public String Code => Get(); public String Name => Get(); public Guid ThumbnailID => Get(); public ImageSource Thumbnail => Parent.GetImage(ThumbnailID); } }