|
@@ -319,23 +319,23 @@ namespace InABox.DynamicGrid
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void AddElement<TElement>(string caption, string category, bool allowduplicate = false, bool visible = true)
|
|
|
+ public void AddElementType<TElement>(string caption, string category, bool allowduplicate = false, bool visible = true)
|
|
|
where TElement : DFLayoutElement
|
|
|
{
|
|
|
- AddElement(typeof(TElement), caption, category, allowduplicate, visible: visible);
|
|
|
+ AddElementType(typeof(TElement), caption, category, allowduplicate, visible: visible);
|
|
|
}
|
|
|
- public void AddElement<TElement, TTag>(string caption, string category, TTag tag, Func<TTag, TElement> createElement, bool allowduplicate = false, bool visible = true)
|
|
|
+ public void AddElementType<TElement, TTag>(string caption, string category, TTag tag, Func<TTag, TElement> createElement, bool allowduplicate = false, bool visible = true)
|
|
|
where TElement : DFLayoutElement
|
|
|
{
|
|
|
- AddElement(typeof(TElement), caption, category, tag, createElement, allowduplicate, visible: visible);
|
|
|
+ AddElementType(typeof(TElement), caption, category, tag, createElement, allowduplicate, visible: visible);
|
|
|
}
|
|
|
|
|
|
- public void AddElement(Type TElement, string caption, string category, bool allowduplicate = false, bool visible = true)
|
|
|
+ public void AddElementType(Type TElement, string caption, string category, bool allowduplicate = false, bool visible = true)
|
|
|
{
|
|
|
_elements.Add(new DynamicFormElement(caption, TElement, category, allowduplicate, visible, null, null));
|
|
|
}
|
|
|
|
|
|
- public void AddElement<TTag>(Type TElement, string caption, string category, TTag tag, Func<TTag, DFLayoutElement> createElement, bool allowduplicate = false, bool visible = true)
|
|
|
+ public void AddElementType<TTag>(Type TElement, string caption, string category, TTag tag, Func<TTag, DFLayoutElement> createElement, bool allowduplicate = false, bool visible = true)
|
|
|
{
|
|
|
_elements.Add(new DynamicFormElement(caption, TElement, category, allowduplicate, visible, tag, x => createElement((TTag)x)));
|
|
|
}
|