using System; using Comal.Classes; using Xamarin.Forms; namespace comal.timesheets { public class InOutShell : Shell { static InOutShell() { Columns .Map(nameof(ID), x => x.ID) .Map(nameof(Name), x=>x.Name) .Map(nameof(Mobile), x => x.Mobile); } public Guid ID => Get(); public String Name => Get(); public String Mobile => Get(); public ImageSource Call => String.IsNullOrWhiteSpace(Mobile) ? null : ImageSource.FromFile("call"); public TimeSpan Start => Parent.StartTime(ID); public TimeSpan Finish => Parent.FinishTime(ID); //public Bitmap bmp public ImageSource In => Parent.IsClockedOn(ID) ? ImageSource.FromFile("greendot") : ImageSource.FromFile("graydot"); } }