IShell.cs 529 B

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