ILookupEditor.cs 440 B

1234567891011121314151617181920
  1. using System;
  2. namespace InABox.Core
  3. {
  4. public interface ILookupEditor : IButtonEditor
  5. {
  6. Type Type { get; }
  7. int LookupWidth { get; set; }
  8. CoreTable Values(Type parent, string columnname, BaseObject[]? items = null);
  9. void Clear();
  10. }
  11. public static class LookupEditorExtensions
  12. {
  13. public static bool IsEnumEditor(this ILookupEditor editor) => editor is EnumLookupEditor;
  14. }
  15. }