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