瀏覽代碼

Renamed 'AddElement' to 'AddElementType'

Kenric Nugteren 4 月之前
父節點
當前提交
8043bd6ad4
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      inabox.wpf/DigitalForms/Designer/DynamicFormDesignGrid.cs

+ 6 - 6
inabox.wpf/DigitalForms/Designer/DynamicFormDesignGrid.cs

@@ -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)));
         }