IModel.cs 589 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.ComponentModel;
  3. using InABox.Core;
  4. using Xamarin.Forms;
  5. namespace comal.timesheets
  6. {
  7. public interface IModel : INotifyPropertyChanged
  8. {
  9. IColumns GetColumns();
  10. ImageSource GetImage(Guid id);
  11. bool HasImages();
  12. bool Loaded { get; }
  13. void BeforeLoad(MultiQuery query);
  14. void AfterLoad(MultiQuery query);
  15. void Load(Action loaded = null);
  16. void Refresh(bool force, Action loaded = null);
  17. IModelHost Host { get; }
  18. ModelType Type { get; }
  19. }
  20. }