PostableSettings.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. protected override void Init()
  26. {
  27. base.Init();
  28. PostableType = "";
  29. Thumbnail = new ImageDocumentLink();
  30. }
  31. }
  32. }