using System; using Comal.Classes; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace PRS.Mobile { public class EmployeeDetailShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { 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) .Map(nameof(Mobile), x => x.Mobile) .Map(nameof(Email), x => x.Email) .Map(nameof(Signature), x => x.Signature); } public Guid ID => Get(); public String Code => Get(); public String Name => Get(); public Guid UserID => Get(); public Guid ThumbnailID => Get(); public String Mobile { get => Get(); set => Set(value); } public String Email { get => Get(); set => Set(value); } public byte[] Signature { get => Get(); set => Set(value); } public ImageSource Thumbnail => Parent.GetImage(ThumbnailID); } }