123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Comal.Classes;
- using InABox.Clients;
- using InABox.Core;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace PRSClasses
- {
- public class DFLayoutAddTaskFieldProperties : DFLayoutFieldProperties<string?, string?>
- {
- public KanbanTypeLink TaskType { get; set; }
- protected override void LoadProperties()
- {
- base.LoadProperties();
- TaskType.ID = GetProperty("TaskType", Guid.Empty);
- }
- protected override void SaveProperties()
- {
- base.SaveProperties();
- SetProperty("TaskType", TaskType.ID);
- }
- public override string? DeserializeValue(DFLoadStorageEntry entry)
- {
- return entry.GetValue<string>();
- }
- public override void SerializeValue(DFSaveStorageEntry entry, string? value)
- {
- entry.SetValue(value);
- }
- public override string? GetValue(string? value)
- {
- return value;
- }
- public override string FormatValue(string? value)
- {
- return string.Format("{0}", value);
- }
- }
- }
|