LookupShell.cs 527 B

1234567891011121314151617
  1. using System;
  2. using InABox.Core;
  3. using Xamarin.Forms;
  4. namespace comal.timesheets
  5. {
  6. public abstract class LookupShell<TParent,TEntity> : Shell<TParent,TEntity>, ILookupShell
  7. where TParent : IModel, ILookupModel
  8. where TEntity : Entity
  9. {
  10. public abstract Guid ID { get; }
  11. public abstract string Code { get; }
  12. public abstract string Description { get; }
  13. public bool Selected { get; set; }
  14. public Color Colour => Selected ? Parent.Selected : Parent.Background;
  15. }
  16. }