WebStyle.cs 970 B

12345678910111213141516171819202122232425262728293031323334
  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. protected override void Init()
  18. {
  19. base.Init();
  20. Code = "";
  21. Description = "";
  22. Style = "";
  23. }
  24. public override string ToString()
  25. {
  26. return Code;
  27. }
  28. }
  29. }