IShell.cs 475 B

12345678910111213141516171819202122232425
  1. using System;
  2. using InABox.Core;
  3. namespace InABox.Avalonia
  4. {
  5. public interface IShell
  6. {
  7. Guid ID { get; }
  8. ICoreRepository Parent { get; }
  9. bool IsSelected { get; set; }
  10. bool IsChanged();
  11. void Save(string auditmessage);
  12. void Cancel();
  13. bool Match(string? text);
  14. }
  15. public interface IShell<out TEntity>
  16. where TEntity : Entity, IRemotable, IPersistent
  17. {
  18. TEntity Entity { get; }
  19. }
  20. }