WebStyle.cs 826 B

1234567891011121314151617181920212223242526
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. /* A WebStyle represents a singular stylesheet, referenced by a code that uniquely identifies it,
  5. * allowing it to be referenced from a specific web template. */
  6. public class WebStyle : Entity, IRemotable, IPersistent, ILicense<WebAccessLicense>, IExportable, IImportable, ISecure
  7. {
  8. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  9. [EditorSequence(1)]
  10. public string Code { get; set; } = "";
  11. [TextBoxEditor]
  12. [EditorSequence(2)]
  13. public string Description { get; set; } = "";
  14. [ScriptEditor(SyntaxLanguage.CSS)]
  15. [EditorSequence(3)]
  16. public string Style { get; set; } = "";
  17. public override string ToString()
  18. {
  19. return Code;
  20. }
  21. }
  22. }