This commit is contained in:
@@ -110,7 +110,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
default:
|
||||
throw new System.ArgumentOutOfRangeException($"FormAvailableFields: {key} is not a valid form key");
|
||||
throw new System.ArgumentOutOfRangeException($"ObjectFields: {key} is not a valid form key");
|
||||
}
|
||||
return l;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
|
||||
}//eoc FormAvailableFields
|
||||
}//eoc ObjectFields
|
||||
|
||||
public class ObjectField
|
||||
{
|
||||
@@ -158,24 +158,24 @@ namespace AyaNova.Biz
|
||||
MiniAvailable = true;
|
||||
}
|
||||
|
||||
public ObjectField(string key, string propertyName, bool sharedLTKey = false, bool hideable = true, bool custom = false)
|
||||
{
|
||||
Key = key;
|
||||
Hideable = hideable;
|
||||
Custom = custom;
|
||||
SharedLTKey = sharedLTKey;
|
||||
PropertyName = propertyName;//Only if hideable do they require this as non-hideable ones are automatically validated anyway and this is only required for validation
|
||||
}
|
||||
// public ObjectField(string key, string propertyName, bool sharedLTKey = false, bool hideable = true, bool custom = false)
|
||||
// {
|
||||
// Key = key;
|
||||
// Hideable = hideable;
|
||||
// Custom = custom;
|
||||
// SharedLTKey = sharedLTKey;
|
||||
// PropertyName = propertyName;//Only if hideable do they require this as non-hideable ones are automatically validated anyway and this is only required for validation
|
||||
// }
|
||||
|
||||
public ObjectField(string key, bool sharedLTKey = false, bool hideable = true, bool custom = false)
|
||||
{
|
||||
Key = key;
|
||||
Hideable = hideable;
|
||||
Custom = custom;
|
||||
SharedLTKey = sharedLTKey;
|
||||
PropertyName = null;
|
||||
// public ObjectField(string key, bool sharedLTKey = false, bool hideable = true, bool custom = false)
|
||||
// {
|
||||
// Key = key;
|
||||
// Hideable = hideable;
|
||||
// Custom = custom;
|
||||
// SharedLTKey = sharedLTKey;
|
||||
// PropertyName = null;
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user