|  | @@ -6,7 +6,7 @@ using System.Reflection;
 | 
	
		
			
				|  |  |  namespace InABox.Core
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  | -    public enum DFLayoutLookupType
 | 
	
		
			
				|  |  | +    public enum DFLayoutLookupDisplayType
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          Button = 0,
 | 
	
		
			
				|  |  |          Combo = 1,
 | 
	
	
		
			
				|  | @@ -19,12 +19,12 @@ namespace InABox.Core
 | 
	
		
			
				|  |  |          public List<string> AdditionalPropertiesList = new List<string>();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          [ComboLookupEditor(typeof(PropertyClassLookups))]
 | 
	
		
			
				|  |  | -        [EditorSequence(1)]
 | 
	
		
			
				|  |  | +        [EditorSequence(100)]
 | 
	
		
			
				|  |  |          public string LookupType { get; set; } = "";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // A JSON-serialized Filter for filtering entries in the lookup editor
 | 
	
		
			
				|  |  |          [FilterEditor]
 | 
	
		
			
				|  |  | -        [EditorSequence(2)]
 | 
	
		
			
				|  |  | +        [EditorSequence(101)]
 | 
	
		
			
				|  |  |          public string Filter { get; set; } = "";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          /// <summary>
 | 
	
	
		
			
				|  | @@ -32,7 +32,7 @@ namespace InABox.Core
 | 
	
		
			
				|  |  |          /// </summary>
 | 
	
		
			
				|  |  |          //[TextBoxEditor(ToolTip = "A comma-separated list of property names.")]
 | 
	
		
			
				|  |  |          [MultiLookupEditor(typeof(AdditionalPropertyLookupGenerator))]
 | 
	
		
			
				|  |  | -        [EditorSequence(3)]
 | 
	
		
			
				|  |  | +        [EditorSequence(102)]
 | 
	
		
			
				|  |  |          public string AdditionalProperties
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              get => string.Join(',', AdditionalPropertiesList);
 | 
	
	
		
			
				|  | @@ -42,13 +42,13 @@ namespace InABox.Core
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  | -        [EnumLookupEditor(typeof(DFLayoutLookupType))]
 | 
	
		
			
				|  |  | -        [EditorSequence(4)]
 | 
	
		
			
				|  |  | -        public DFLayoutLookupType Type { get; set; }
 | 
	
		
			
				|  |  | +        [EnumLookupEditor(typeof(DFLayoutLookupDisplayType))]
 | 
	
		
			
				|  |  | +        [EditorSequence(103)]
 | 
	
		
			
				|  |  | +        public DFLayoutLookupDisplayType DisplayType { get; set; }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          public DFLayoutLookupFieldProperties()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -            Type = DFLayoutLookupType.Button;
 | 
	
		
			
				|  |  | +            DisplayType = DFLayoutLookupDisplayType.Button;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          public override string FormatValue(object? value)
 | 
	
	
		
			
				|  | @@ -81,17 +81,19 @@ namespace InABox.Core
 | 
	
		
			
				|  |  |          protected override void LoadProperties()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              base.LoadProperties();
 | 
	
		
			
				|  |  | -            LookupType = GetProperty("LookupType", "");
 | 
	
		
			
				|  |  | -            Filter = GetProperty("Filter", "");
 | 
	
		
			
				|  |  | -            AdditionalProperties = GetProperty("AdditionalProperties", "");
 | 
	
		
			
				|  |  | +            LookupType = GetProperty(nameof(LookupType), "");
 | 
	
		
			
				|  |  | +            Filter = GetProperty(nameof(Filter), "");
 | 
	
		
			
				|  |  | +            AdditionalProperties = GetProperty(nameof(AdditionalProperties), "");
 | 
	
		
			
				|  |  | +            DisplayType = GetProperty(nameof(DisplayType), DFLayoutLookupDisplayType.Button);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          protected override void SaveProperties()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              base.SaveProperties();
 | 
	
		
			
				|  |  | -            SetProperty("LookupType", LookupType);
 | 
	
		
			
				|  |  | -            SetProperty("Filter", Filter);
 | 
	
		
			
				|  |  | -            SetProperty("AdditionalProperties", AdditionalProperties);
 | 
	
		
			
				|  |  | +            SetProperty(nameof(LookupType), LookupType);
 | 
	
		
			
				|  |  | +            SetProperty(nameof(Filter), Filter);
 | 
	
		
			
				|  |  | +            SetProperty(nameof(AdditionalProperties), AdditionalProperties);
 | 
	
		
			
				|  |  | +            SetProperty(nameof(DisplayType),DisplayType);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |