123456789101112131415161718192021222324252627282930313233343536373839 |
- namespace InABox.Core
- {
- public class DFLayoutStringFieldProperties : DFLayoutFieldProperties<string>
- {
- [CheckBoxEditor(Caption = "Popup Editor?")]
- public bool PopupEditor { get; set; }
- protected override void Init()
- {
- base.Init();
- PopupEditor = false;
- }
- public override object? ParseValue(object? value)
- {
- return value?.ToString();
- }
- public override string FormatValue(object? value)
- {
- return value?.ToString() ?? "";
- }
- protected override void LoadProperties()
- {
- base.LoadProperties();
- PopupEditor = GetProperty("PopupEditor", false);
- }
- protected override void SaveProperties()
- {
- base.SaveProperties();
- SetProperty("PopupEditor", PopupEditor);
- }
- }
- }
|