PostableSettings.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using InABox.Configuration;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace InABox.Core
  6. {
  7. /// <summary>
  8. /// The global settings for an <see cref="IPostable"/>.
  9. /// </summary>
  10. public class PostableSettings : BaseObject, IGlobalConfigurationSettings
  11. {
  12. [NullEditor]
  13. public string PostableType { get; set; } = "";
  14. /// <summary>
  15. /// What kind of <see cref="IPoster{TEntity, TSettings}"/> is to be used, globally; this will be a type name.
  16. /// </summary>
  17. [ComboLookupEditor(typeof(PosterTypeLookup))]
  18. [EditorSequence(1)]
  19. public string? PosterType { get; set; }
  20. [TextBoxEditor]
  21. [EditorSequence(2)]
  22. public string? ButtonName { get; set; }
  23. [EditorSequence(3)]
  24. public ImageDocumentLink Thumbnail { get; set; }
  25. [EditorSequence(4)]
  26. [CheckBoxEditor]
  27. public bool ShowClearButton { get; set; } = true;
  28. [EditorSequence(5)]
  29. [CheckBoxEditor]
  30. [Caption("Show Import Button")]
  31. public bool ShowPullButton { get; set; } = true;
  32. }
  33. }