| 12345678910111213141516171819202122232425262728293031 | using System;using System.Linq;using Xamarin.Forms;namespace comal.timesheets{    public class JobSelectionPage : SelectionPage    {        public JobSelectionPage(Action<JobShell> action)            : base(                "Select Job",                SelectionPageMode.Immediate,                (columns) =>                {                    columns                        .BeginUpdate()                        .Clear()                        .Add(new MobileGridTextColumn<JobShell>()                            { Column = x => x.JobNumber, Width = 100, Alignment = TextAlignment.Center })                        .Add(new MobileGridTextColumn<JobShell>()                            { Column = x => x.Name, Width = GridLength.Star, Alignment = TextAlignment.Start })                        .EndUpdate();                },                (refresh) => App.Data.Jobs.Refresh(refresh),                (items) => action?.Invoke(items.FirstOrDefault() as JobShell)            )        {        }    }}
 |