DFLayoutLabel.cs 665 B

12345678910111213141516171819202122232425262728293031
  1. namespace InABox.Core
  2. {
  3. public class DFLayoutLabel : DFLayoutControl
  4. {
  5. [MemoEditor]
  6. [EditorSequence(0)]
  7. public string Caption { get; set; }
  8. public DFLayoutLabel()
  9. {
  10. Caption = "";
  11. }
  12. protected override string GetDescription()
  13. {
  14. return Caption;
  15. }
  16. protected override void LoadProperties()
  17. {
  18. base.LoadProperties();
  19. Caption = GetProperty("Caption", "");
  20. }
  21. protected override void SaveProperties()
  22. {
  23. base.SaveProperties();
  24. SetProperty("Caption", Caption);
  25. }
  26. }
  27. }